diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-08 17:04:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-09 10:07:47 +0200 |
commit | 1b1080fe8a2368410982c5b11575de183fb1bfa9 (patch) | |
tree | b36be6e160d6c647a9769bae5058e291822f4b33 /dbaccess/source/ui/tabledesign/TableDesignView.cxx | |
parent | ed4375c6d834e68a3f7c7dfb39a6ae0755da4785 (diff) |
loplugin:constantparam in dbaccess
Change-Id: I44b5a586a1b0da47e032dff097ebf545f5fe76fc
Diffstat (limited to 'dbaccess/source/ui/tabledesign/TableDesignView.cxx')
-rw-r--r-- | dbaccess/source/ui/tabledesign/TableDesignView.cxx | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/dbaccess/source/ui/tabledesign/TableDesignView.cxx b/dbaccess/source/ui/tabledesign/TableDesignView.cxx index 2b92d44af4cb..97f062113e2d 100644 --- a/dbaccess/source/ui/tabledesign/TableDesignView.cxx +++ b/dbaccess/source/ui/tabledesign/TableDesignView.cxx @@ -45,7 +45,7 @@ OTableBorderWindow::OTableBorderWindow(vcl::Window* pParent) : Window(pParent,WB ,m_aHorzSplitter( VclPtr<Splitter>::Create(this) ) { - ImplInitSettings( true, true, true ); + ImplInitSettings( true ); // Children erzeugen m_pEditorCtrl = VclPtr<OTableEditorCtrl>::Create( this); m_pFieldDescWin = VclPtr<OTableFieldDescWin>::Create( this ); @@ -114,27 +114,21 @@ IMPL_LINK_TYPED( OTableBorderWindow, SplitHdl, Splitter*, pSplit, void ) } } -void OTableBorderWindow::ImplInitSettings( bool bFont, bool bForeground, bool bBackground ) +void OTableBorderWindow::ImplInitSettings( bool bBackground ) { const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); // FIXME RenderContext - if ( bFont ) - { - vcl::Font aFont = rStyleSettings.GetAppFont(); - if ( IsControlFont() ) - aFont.Merge( GetControlFont() ); - SetPointFont(*this, aFont); - } + vcl::Font aFont = rStyleSettings.GetAppFont(); + if ( IsControlFont() ) + aFont.Merge( GetControlFont() ); + SetPointFont(*this, aFont); - if ( bFont || bForeground ) - { - Color aTextColor = rStyleSettings.GetButtonTextColor(); - if ( IsControlForeground() ) - aTextColor = GetControlForeground(); - SetTextColor( aTextColor ); - } + Color aTextColor = rStyleSettings.GetButtonTextColor(); + if ( IsControlForeground() ) + aTextColor = GetControlForeground(); + SetTextColor( aTextColor ); if ( bBackground ) { @@ -152,7 +146,7 @@ void OTableBorderWindow::DataChanged( const DataChangedEvent& rDCEvt ) if ( (rDCEvt.GetType() == DataChangedEventType::SETTINGS) && (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) ) { - ImplInitSettings( true, true, true ); + ImplInitSettings( true ); Invalidate(); } } |