Browse Source

client/widgets/Buttons.h: Fix const reference

Co-authored-by: Andrey Filipenkov <[email protected]>
Alexander Wilms 2 years ago
parent
commit
e677164ed0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/widgets/Buttons.h

+ 1 - 1
client/widgets/Buttons.h

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