Sprinkle some const-ref

This commit is contained in:
jvoisin 2021-08-15 19:50:28 +02:00
parent 7400050b38
commit 7a015d24c6
28 changed files with 35 additions and 35 deletions

View file

@ -18,7 +18,7 @@ namespace Gui
}
}
void SharedStateButton::shareStateWith(ButtonGroup shared)
void SharedStateButton::shareStateWith(const ButtonGroup &shared)
{
mSharedWith = shared;
}

View file

@ -34,7 +34,7 @@ namespace Gui
bool _setState(const std::string &_value);
public:
void shareStateWith(ButtonGroup shared);
void shareStateWith(const ButtonGroup &shared);
/// @note The ButtonGroup connection will be destroyed when any widget in the group gets destroyed.
static void createButtonGroup(ButtonGroup group);