diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-12 12:55:32 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-12 12:57:05 +0200 |
commit | 5333782d090a9e147c0c431f0f741863d1d8cf8e (patch) | |
tree | efff4a9394099568688559d52a36c8d9fe94ebd2 /svtools/source/toolpanel | |
parent | a5b5ad9f9306d868430ed9efd210b95c24a15161 (diff) |
convert SETTINGS_ #defines to 'enum class'
and dump the ones that nothing is listening to
Change-Id: I253ef284df785812a439dd160edba1b07fdbaac4
Diffstat (limited to 'svtools/source/toolpanel')
-rw-r--r-- | svtools/source/toolpanel/paneltabbar.cxx | 2 | ||||
-rw-r--r-- | svtools/source/toolpanel/toolpaneldrawer.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/toolpanel/paneltabbar.cxx b/svtools/source/toolpanel/paneltabbar.cxx index 484cc3cc9d5d..91c1304ddb80 100644 --- a/svtools/source/toolpanel/paneltabbar.cxx +++ b/svtools/source/toolpanel/paneltabbar.cxx @@ -1298,7 +1298,7 @@ namespace svt Control::DataChanged( i_rDataChanedEvent ); if ( ( i_rDataChanedEvent.GetType() == DataChangedEventType::SETTINGS ) - && ( ( i_rDataChanedEvent.GetFlags() & SETTINGS_STYLE ) != 0 ) + && ( i_rDataChanedEvent.GetFlags() & AllSettingsFlags::STYLE ) ) { Invalidate(); diff --git a/svtools/source/toolpanel/toolpaneldrawer.cxx b/svtools/source/toolpanel/toolpaneldrawer.cxx index d63840924903..d74545593d1c 100644 --- a/svtools/source/toolpanel/toolpaneldrawer.cxx +++ b/svtools/source/toolpanel/toolpaneldrawer.cxx @@ -258,7 +258,7 @@ namespace svt switch ( i_rEvent.GetType() ) { case DataChangedEventType::SETTINGS: - if ( ( i_rEvent.GetFlags() & SETTINGS_STYLE ) == 0 ) + if ( !( i_rEvent.GetFlags() & AllSettingsFlags::STYLE ) ) break; SetSettings( Application::GetSettings() ); m_pPaintDevice.reset( new VirtualDevice( *this ) ); |