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