From 1b1080fe8a2368410982c5b11575de183fb1bfa9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 8 Mar 2016 17:04:25 +0200 Subject: loplugin:constantparam in dbaccess Change-Id: I44b5a586a1b0da47e032dff097ebf545f5fe76fc --- dbaccess/source/ui/tabledesign/TableDesignView.cxx | 28 +++++++++------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to 'dbaccess/source/ui/tabledesign/TableDesignView.cxx') 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::Create(this) ) { - ImplInitSettings( true, true, true ); + ImplInitSettings( true ); // Children erzeugen m_pEditorCtrl = VclPtr::Create( this); m_pFieldDescWin = VclPtr::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(); } } -- cgit