fix a compil issue.

This commit is contained in:
jean-pierre charras 2018-04-24 15:20:35 +02:00
parent 143d580596
commit 319908b7f4
2 changed files with 2 additions and 2 deletions

View File

@ -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() ) if( TOOL_STATE* active = GetCurrentToolState() )
return active->vcSettings; return active->vcSettings;

View File

@ -370,7 +370,7 @@ public:
* Returns the view controls settings for the current tool or the general settings if there is * Returns the view controls settings for the current tool or the general settings if there is
* no active tool. * no active tool.
*/ */
KIGFX::VC_SETTINGS& GetCurrentToolVC() const; const KIGFX::VC_SETTINGS& GetCurrentToolVC() const;
private: private:
typedef std::pair<TOOL_EVENT_LIST, TOOL_STATE_FUNC> TRANSITION; typedef std::pair<TOOL_EVENT_LIST, TOOL_STATE_FUNC> TRANSITION;