mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-28 08:48:48 +02:00
client/widgets/Buttons.h: Fix const reference
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
This commit is contained in:
parent
5d7b83c10b
commit
e677164ed0
@ -67,7 +67,7 @@ public:
|
||||
void setBorderColor(std::optional<ColorRGBA> borderColor);
|
||||
|
||||
/// adds one more callback to on-click actions
|
||||
void addCallback(std::function<void()> const & callback);
|
||||
void addCallback(const std::function<void()> & callback);
|
||||
|
||||
/// adds overlay on top of button image. Only one overlay can be active at once
|
||||
void addOverlay(std::shared_ptr<CIntObject> newOverlay);
|
||||
|
Loading…
Reference in New Issue
Block a user