diff options
author | Noel Grandin <noel@peralex.com> | 2014-06-09 10:09:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-06-09 10:10:13 +0200 |
commit | 184a00b96235f6432294ded63ce4a4a318effdb5 (patch) | |
tree | e4ae0e00cb168fa43d280cfb51a50515258b5320 /unotools | |
parent | 534015ad4fd08823b4393dab1ad5d42dedd7bf62 (diff) |
loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configitem.cxx | 8 | ||||
-rw-r--r-- | unotools/source/config/extendedsecurityoptions.cxx | 6 | ||||
-rw-r--r-- | unotools/source/config/fontoptions.cxx | 18 | ||||
-rw-r--r-- | unotools/source/config/localisationoptions.cxx | 15 | ||||
-rw-r--r-- | unotools/source/config/securityoptions.cxx | 28 |
5 files changed, 10 insertions, 65 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index 1adbb527c3a9..574440a9186b 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -1095,10 +1095,6 @@ bool ConfigItem::AddNode(const OUString& rNode, const OUString& rNewNode) return bRet; } -sal_Int16 ConfigItem::GetMode() const -{ - return m_nMode; -} void ConfigItem::SetModified() { @@ -1110,10 +1106,6 @@ void ConfigItem::ClearModified() m_bIsModified = false; } -bool ConfigItem::IsModified() const -{ - return m_bIsModified; -} bool ConfigItem::IsInValueChange() const { diff --git a/unotools/source/config/extendedsecurityoptions.cxx b/unotools/source/config/extendedsecurityoptions.cxx index 2610eeb0eda1..751c53be4dc0 100644 --- a/unotools/source/config/extendedsecurityoptions.cxx +++ b/unotools/source/config/extendedsecurityoptions.cxx @@ -79,7 +79,7 @@ class SvtExtendedSecurityOptions_Impl : public ConfigItem virtual void Commit() SAL_OVERRIDE; - SvtExtendedSecurityOptions::OpenHyperlinkMode GetOpenHyperlinkMode(); + SvtExtendedSecurityOptions::OpenHyperlinkMode GetOpenHyperlinkMode() { return m_eOpenHyperlinkMode;} private: /*-**************************************************************************************************** @@ -199,10 +199,6 @@ void SvtExtendedSecurityOptions_Impl::Commit() // public method -SvtExtendedSecurityOptions::OpenHyperlinkMode SvtExtendedSecurityOptions_Impl::GetOpenHyperlinkMode() -{ - return m_eOpenHyperlinkMode; -} // private method diff --git a/unotools/source/config/fontoptions.cxx b/unotools/source/config/fontoptions.cxx index 10321798746d..9172fcc1191b 100644 --- a/unotools/source/config/fontoptions.cxx +++ b/unotools/source/config/fontoptions.cxx @@ -80,10 +80,10 @@ class SvtFontOptions_Impl : public ConfigItem It's not used in the moment - but it's possible for the feature! *//*-*****************************************************************************************************/ - bool IsFontHistoryEnabled ( ) const; + bool IsFontHistoryEnabled ( ) const { return m_bFontHistory;} void EnableFontHistory ( bool bState ); - bool IsFontWYSIWYGEnabled ( ) const; + bool IsFontWYSIWYGEnabled ( ) const { return m_bFontWYSIWYG;} void EnableFontWYSIWYG ( bool bState ); private: @@ -234,13 +234,6 @@ void SvtFontOptions_Impl::Commit() // public method -bool SvtFontOptions_Impl::IsFontHistoryEnabled() const -{ - return m_bFontHistory; -} - -// public method - void SvtFontOptions_Impl::EnableFontHistory( bool bState ) { m_bFontHistory = bState; @@ -249,13 +242,6 @@ void SvtFontOptions_Impl::EnableFontHistory( bool bState ) // public method -bool SvtFontOptions_Impl::IsFontWYSIWYGEnabled() const -{ - return m_bFontWYSIWYG; -} - -// public method - void SvtFontOptions_Impl::EnableFontWYSIWYG( bool bState ) { m_bFontWYSIWYG = bState; diff --git a/unotools/source/config/localisationoptions.cxx b/unotools/source/config/localisationoptions.cxx index d5c6daf5453c..ed83d1c0bbaa 100644 --- a/unotools/source/config/localisationoptions.cxx +++ b/unotools/source/config/localisationoptions.cxx @@ -79,8 +79,8 @@ class SvtLocalisationOptions_Impl : public ConfigItem It's not used in the moment - but it's possible for the feature! *//*-*****************************************************************************************************/ - bool IsAutoMnemonic ( ) const; - sal_Int32 GetDialogScale ( ) const; + bool IsAutoMnemonic ( ) const { return m_bAutoMnemonic;} + sal_Int32 GetDialogScale ( ) const { return m_nDialogScale;} private: @@ -216,17 +216,6 @@ void SvtLocalisationOptions_Impl::Commit() // public method -bool SvtLocalisationOptions_Impl::IsAutoMnemonic() const -{ - return m_bAutoMnemonic; -} - -// public method - -sal_Int32 SvtLocalisationOptions_Impl::GetDialogScale() const -{ - return m_nDialogScale; -} Sequence< OUString > SvtLocalisationOptions_Impl::GetPropertyNames() { diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx index 7906ed7cc726..d0bb4a5959c4 100644 --- a/unotools/source/config/securityoptions.cxx +++ b/unotools/source/config/securityoptions.cxx @@ -204,13 +204,14 @@ class SvtSecurityOptions_Impl : public ConfigItem bool m_bROExecutePlugins; bool m_bROBasicMode; public: - bool IsWarningEnabled() const; + bool IsWarningEnabled() const { return m_bWarning;} void SetWarningEnabled( bool bSet ); - bool IsConfirmationEnabled() const; + bool IsConfirmationEnabled() const { return m_bConfirmation;} void SetConfirmationEnabled( bool bSet ); - bool IsExecutePlugins() const; + bool IsExecutePlugins() const { return m_bExecutePlugins;} void SetExecutePlugins( bool bSet ); - EBasicSecurityMode GetBasicMode ( ) const; + // xmlsec05 deprecated + EBasicSecurityMode GetBasicMode ( ) const { return m_eBasicMode;} void SetBasicMode ( EBasicSecurityMode eMode ); }; @@ -1109,13 +1110,6 @@ Mutex& SvtSecurityOptions::GetInitMutex() return theSecurityOptionsMutex::get(); } -// xmlsec05 deprecated - -EBasicSecurityMode SvtSecurityOptions_Impl::GetBasicMode() const -{ - return m_eBasicMode; -} - void SvtSecurityOptions_Impl::SetBasicMode( EBasicSecurityMode eMode ) { DBG_ASSERT(!m_bROBasicMode, "SvtSecurityOptions_Impl::SetBasicMode()\nYou tried to write on a readonly value!\n"); @@ -1126,10 +1120,6 @@ void SvtSecurityOptions_Impl::SetBasicMode( EBasicSecurityMode eMode ) } } -bool SvtSecurityOptions_Impl::IsExecutePlugins() const -{ - return m_bExecutePlugins; -} void SvtSecurityOptions_Impl::SetExecutePlugins( bool bSet ) { @@ -1141,10 +1131,6 @@ void SvtSecurityOptions_Impl::SetExecutePlugins( bool bSet ) } } -bool SvtSecurityOptions_Impl::IsWarningEnabled() const -{ - return m_bWarning; -} void SvtSecurityOptions_Impl::SetWarningEnabled( bool bSet ) { @@ -1156,10 +1142,6 @@ void SvtSecurityOptions_Impl::SetWarningEnabled( bool bSet ) } } -bool SvtSecurityOptions_Impl::IsConfirmationEnabled() const -{ - return m_bConfirmation; -} void SvtSecurityOptions_Impl::SetConfirmationEnabled( bool bSet ) { |