From 184a00b96235f6432294ded63ce4a4a318effdb5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 9 Jun 2014 10:09:42 +0200 Subject: loplugin: inlinesimplememberfunctions Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b --- unotools/source/config/securityoptions.cxx | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) (limited to 'unotools/source/config/securityoptions.cxx') 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 ) { -- cgit