diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-04 00:04:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-04 01:41:02 +0200 |
commit | ce47b1a9c68a27fc37594148f6be2661f27120ea (patch) | |
tree | 4c9b5c3da29b76c7c8eb23cdbf85c496b0efd87e /vcl/source/window/split.cxx | |
parent | 6fc2a300ad8b1c6936b513eff94fd527ea74b469 (diff) |
loplugin:flatten in vcl/window
Change-Id: I94e69e988f038e85b1fb78985211d478bb5ed9b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100033
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/split.cxx')
-rw-r--r-- | vcl/source/window/split.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/vcl/source/window/split.cxx b/vcl/source/window/split.cxx index 44b44d33e73d..ffa6f7bbe173 100644 --- a/vcl/source/window/split.cxx +++ b/vcl/source/window/split.cxx @@ -650,21 +650,21 @@ void Splitter::KeyInput( const KeyEvent& rKEvt ) void Splitter::DataChanged( const DataChangedEvent& rDCEvt ) { Window::DataChanged( rDCEvt ); - if( rDCEvt.GetType() == DataChangedEventType::SETTINGS ) - { - const AllSettings* pOldSettings = rDCEvt.GetOldSettings(); - if(!pOldSettings) - return; + if( rDCEvt.GetType() != DataChangedEventType::SETTINGS ) + return; - Color oldFaceColor = pOldSettings->GetStyleSettings().GetFaceColor(); - Color newFaceColor = Application::GetSettings().GetStyleSettings().GetFaceColor(); - if( oldFaceColor.IsDark() != newFaceColor.IsDark() ) - { - if( newFaceColor.IsDark() ) - SetBackground( ImplWhiteWall::get() ); - else - SetBackground( ImplBlackWall::get() ); - } + const AllSettings* pOldSettings = rDCEvt.GetOldSettings(); + if(!pOldSettings) + return; + + Color oldFaceColor = pOldSettings->GetStyleSettings().GetFaceColor(); + Color newFaceColor = Application::GetSettings().GetStyleSettings().GetFaceColor(); + if( oldFaceColor.IsDark() != newFaceColor.IsDark() ) + { + if( newFaceColor.IsDark() ) + SetBackground( ImplWhiteWall::get() ); + else + SetBackground( ImplBlackWall::get() ); } } |