From e985f797c33d83babb5aed1e39feedd0c4bb1067 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Fri, 21 Sep 2018 13:12:59 +0200 Subject: [PATCH] Return reference to current object from operator= --- common/tool/tool_manager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/common/tool/tool_manager.cpp b/common/tool/tool_manager.cpp index db5b114575..3233d1cbe5 100644 --- a/common/tool/tool_manager.cpp +++ b/common/tool/tool_manager.cpp @@ -123,6 +123,7 @@ struct TOOL_MANAGER::TOOL_STATE transitions = aState.transitions; vcSettings = aState.vcSettings; // do not copy stateStack + return *this; } bool operator==( const TOOL_MANAGER::TOOL_STATE& aRhs ) const