From e677164ed07f0ebb1e7a2440ddb998b75f91ca7d Mon Sep 17 00:00:00 2001 From: Alexander Wilms Date: Sun, 29 Oct 2023 00:55:42 +0200 Subject: [PATCH] client/widgets/Buttons.h: Fix const reference Co-authored-by: Andrey Filipenkov --- client/widgets/Buttons.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/widgets/Buttons.h b/client/widgets/Buttons.h index fda839940..9eea639fd 100644 --- a/client/widgets/Buttons.h +++ b/client/widgets/Buttons.h @@ -67,7 +67,7 @@ public: void setBorderColor(std::optional borderColor); /// adds one more callback to on-click actions - void addCallback(std::function const & callback); + void addCallback(const std::function & callback); /// adds overlay on top of button image. Only one overlay can be active at once void addOverlay(std::shared_ptr newOverlay);