1
0
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:
Alexander Wilms 2023-10-29 00:55:25 +02:00
parent 0232ae5327
commit 5d7b83c10b

View File

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