mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
client/widgets/Buttons.cpp: Fix const reference
Co-authored-by: Andrey Filipenkov <kambaladecapitator@gmail.com>
This commit is contained in:
@@ -66,7 +66,7 @@ void CButton::setBorderColor(std::optional<ColorRGBA> newBorderColor)
|
|||||||
borderColor = newBorderColor;
|
borderColor = newBorderColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CButton::addCallback(std::function<void()> const & callback)
|
void CButton::addCallback(const std::function<void()> & callback)
|
||||||
{
|
{
|
||||||
this->callback += callback;
|
this->callback += callback;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user