From 319908b7f4a421d68b6d9e0f4dadda7ec484cc18 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 24 Apr 2018 15:20:35 +0200 Subject: [PATCH] fix a compil issue. --- common/tool/tool_manager.cpp | 2 +- include/tool/tool_manager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/tool/tool_manager.cpp b/common/tool/tool_manager.cpp index 49039f85f9..47d9413480 100644 --- a/common/tool/tool_manager.cpp +++ b/common/tool/tool_manager.cpp @@ -835,7 +835,7 @@ std::string TOOL_MANAGER::GetClipboard() const } -KIGFX::VC_SETTINGS TOOL_MANAGER::GetCurrentToolVC() const +const KIGFX::VC_SETTINGS& TOOL_MANAGER::GetCurrentToolVC() const { if( TOOL_STATE* active = GetCurrentToolState() ) return active->vcSettings; diff --git a/include/tool/tool_manager.h b/include/tool/tool_manager.h index f6b008cc8c..971dffa81e 100644 --- a/include/tool/tool_manager.h +++ b/include/tool/tool_manager.h @@ -370,7 +370,7 @@ public: * Returns the view controls settings for the current tool or the general settings if there is * no active tool. */ - KIGFX::VC_SETTINGS& GetCurrentToolVC() const; + const KIGFX::VC_SETTINGS& GetCurrentToolVC() const; private: typedef std::pair TRANSITION;