1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

client/widgets/Buttons.h: Fix const reference

Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
This commit is contained in:
Alexander Wilms 2023-10-29 00:55:42 +02:00
parent 5d7b83c10b
commit e677164ed0

View File

@ -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);