From 30069114fef2858936c988e8fbc92a69b2ddc8d3 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 13 Jun 2014 17:52:13 +0200 Subject: loplugin:staticcall Change-Id: If7b285a2214bc878e8464a986538d0445078fcb3 --- svtools/source/config/apearcfg.cxx | 6 +++--- svtools/source/config/colorcfg.cxx | 4 ++-- svtools/source/config/extcolorcfg.cxx | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'svtools/source/config') diff --git a/svtools/source/config/apearcfg.cxx b/svtools/source/config/apearcfg.cxx index 949e43874312..aec81f1bc17a 100644 --- a/svtools/source/config/apearcfg.cxx +++ b/svtools/source/config/apearcfg.cxx @@ -161,7 +161,7 @@ void SvtTabAppearanceCfg::SetMiddleMouseButton ( sal_uInt16 nSet ) void SvtTabAppearanceCfg::SetApplicationDefaults ( Application* pApp ) { - AllSettings hAppSettings = pApp->GetSettings(); + AllSettings hAppSettings = Application::GetSettings(); StyleSettings hAppStyle = hAppSettings.GetStyleSettings(); // Look & Feel @@ -218,10 +218,10 @@ void SvtTabAppearanceCfg::SetApplicationDefaults ( Application* pApp ) hAppSettings.SetMouseSettings( hMouseSettings ); hAppSettings.SetStyleSettings( hAppStyle ); - pApp->MergeSystemSettings ( hAppSettings ); // Allow system-settings to apply + Application::MergeSystemSettings ( hAppSettings ); // Allow system-settings to apply pApp->OverrideSystemSettings ( hAppSettings ); - pApp->SetSettings ( hAppSettings ); + Application::SetSettings ( hAppSettings ); } diff --git a/svtools/source/config/colorcfg.cxx b/svtools/source/config/colorcfg.cxx index 7a087c45c8b4..23e7cb1cf419 100644 --- a/svtools/source/config/colorcfg.cxx +++ b/svtools/source/config/colorcfg.cxx @@ -368,7 +368,7 @@ void ColorConfig_Impl::ImplUpdateApplicationSettings() Application* pApp = GetpApp(); if( pApp ) { - AllSettings aSettings = pApp->GetSettings(); + AllSettings aSettings = Application::GetSettings(); StyleSettings aStyleSettings( aSettings.GetStyleSettings() ); ColorConfigValue aRet = GetColorConfigValue(svtools::FONTCOLOR); @@ -382,7 +382,7 @@ void ColorConfig_Impl::ImplUpdateApplicationSettings() aStyleSettings.SetFontColor( aFontColor ); aSettings.SetStyleSettings( aStyleSettings ); - pApp->SetSettings( aSettings ); + Application::SetSettings( aSettings ); } } } diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx index a7f0ed205a8e..d2a0536613c1 100644 --- a/svtools/source/config/extcolorcfg.cxx +++ b/svtools/source/config/extcolorcfg.cxx @@ -530,7 +530,7 @@ void ExtendedColorConfig_Impl::UnlockBroadcast() m_bBroadcastWhenUnlocked = ExtendedColorConfig::m_pImpl != NULL; if ( m_bBroadcastWhenUnlocked ) { - if ( ExtendedColorConfig::m_pImpl->IsEnableBroadcast() ) + if ( ExtendedColorConfig_Impl::IsEnableBroadcast() ) { m_bBroadcastWhenUnlocked = false; ExtendedColorConfig::m_pImpl->Broadcast(SfxSimpleHint(SFX_HINT_COLORS_CHANGED)); @@ -621,12 +621,12 @@ EditableExtendedColorConfig::EditableExtendedColorConfig() : m_pImpl(new ExtendedColorConfig_Impl), m_bModified(false) { - m_pImpl->LockBroadcast(); + ExtendedColorConfig_Impl::LockBroadcast(); } EditableExtendedColorConfig::~EditableExtendedColorConfig() { - m_pImpl->UnlockBroadcast(); + ExtendedColorConfig_Impl::UnlockBroadcast(); if(m_bModified) m_pImpl->SetModified(); if(m_pImpl->IsModified()) @@ -688,12 +688,12 @@ void EditableExtendedColorConfig::Commit() void EditableExtendedColorConfig::DisableBroadcast() { - m_pImpl->DisableBroadcast(); + ExtendedColorConfig_Impl::DisableBroadcast(); } void EditableExtendedColorConfig::EnableBroadcast() { - m_pImpl->EnableBroadcast(); + ExtendedColorConfig_Impl::EnableBroadcast(); } sal_Int32 EditableExtendedColorConfig::GetComponentCount() const -- cgit