diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-08 16:38:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-09 10:07:46 +0200 |
commit | 5c1c8f53d7f6fa5eeaac7fca75bafad9154e1be5 (patch) | |
tree | 8e37e6e88f8873861708e2d658915bec5f26c678 /basctl/source | |
parent | cc091b034336d3ded4538c039eb9086d271a3d98 (diff) |
loplugin:constantparam in basctl
Change-Id: I07d22585e768335f61d70bf18807479a2675804a
Diffstat (limited to 'basctl/source')
-rw-r--r-- | basctl/source/basicide/baside3.cxx | 22 | ||||
-rw-r--r-- | basctl/source/inc/baside3.hxx | 2 |
2 files changed, 9 insertions, 15 deletions
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx index 36855cb8d946..af1421648ff3 100644 --- a/basctl/source/basicide/baside3.cxx +++ b/basctl/source/basicide/baside3.cxx @@ -80,7 +80,7 @@ DialogWindow::DialogWindow(DialogWindowLayout* pParent, ScriptDocument const& rD : Reference<frame::XModel>(), xDialogModel)) ,pUndoMgr(new SfxUndoManager) { - InitSettings( true, true, true ); + InitSettings( true ); pEditor->GetModel().SetNotifyUndoActionHdl( LINK(this, DialogWindow, NotifyUndoActionHdl) @@ -1325,29 +1325,23 @@ void DialogWindow::DataChanged( const DataChangedEvent& rDCEvt ) { if( (rDCEvt.GetType()==DataChangedEventType::SETTINGS) && (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) ) { - InitSettings( true, true, true ); + InitSettings( true ); Invalidate(); } else BaseWindow::DataChanged( rDCEvt ); } -void DialogWindow::InitSettings(bool bFont, bool bForeground, bool bBackground) +void DialogWindow::InitSettings(bool bBackground) { // FIXME RenderContext const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); - if( bFont ) - { - vcl::Font aFont; - aFont = rStyleSettings.GetFieldFont(); - SetPointFont(*this, aFont); - } + vcl::Font aFont; + aFont = rStyleSettings.GetFieldFont(); + SetPointFont(*this, aFont); - if( bForeground || bFont ) - { - SetTextColor( rStyleSettings.GetFieldTextColor() ); - SetTextFillColor(); - } + SetTextColor( rStyleSettings.GetFieldTextColor() ); + SetTextFillColor(); if( bBackground ) SetBackground( rStyleSettings.GetFieldColor() ); diff --git a/basctl/source/inc/baside3.hxx b/basctl/source/inc/baside3.hxx index 61afcb84d153..e6696d4a7f81 100644 --- a/basctl/source/inc/baside3.hxx +++ b/basctl/source/inc/baside3.hxx @@ -77,7 +77,7 @@ protected: virtual void DoInit() override; virtual void DoScroll( ScrollBar* pCurScrollBar ) override; virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; - void InitSettings(bool bFont, bool bForeground, bool bBackground); + void InitSettings(bool bBackground); public: DialogWindow (DialogWindowLayout* pParent, ScriptDocument const& rDocument, const OUString& aLibName, const OUString& aName, css::uno::Reference<css::container::XNameContainer> const& xDialogModel); |