diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-07 16:08:25 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-11 15:14:32 +0000 |
commit | cb7ede2d9970a4d162dc71922f578922c0d6235a (patch) | |
tree | 141884aa4a9d7c2c3cfb6fdf850ddf71cad0e7a4 /cui | |
parent | connectivity: Iterate over each Entry in a Map & Enhanced for-loops (diff) | |
download | core-cb7ede2d9970a4d162dc71922f578922c0d6235a.tar.gz core-cb7ede2d9970a4d162dc71922f578922c0d6235a.zip |
convert vcl StateChangedType to enum class
Change-Id: Ifa46523619ae7fb8d112525b8df594836e51bb8f
Reviewed-on: https://gerrit.libreoffice.org/11843
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/hangulhanjadlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/iconcdlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/connpooloptions.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/tabpages/numfmt.cxx | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/cui/source/dialogs/hangulhanjadlg.cxx b/cui/source/dialogs/hangulhanjadlg.cxx index 4ff53ba2457a..067397cef2e8 100644 --- a/cui/source/dialogs/hangulhanjadlg.cxx +++ b/cui/source/dialogs/hangulhanjadlg.cxx @@ -402,7 +402,7 @@ namespace svx void SuggestionDisplay::StateChanged( StateChangedType nStateChange ) { - if( STATE_CHANGE_VISIBLE == nStateChange ) + if( StateChangedType::VISIBLE == nStateChange ) implUpdateDisplay(); } diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index b85829c22f08..835829d77b79 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -133,7 +133,7 @@ void IconChoicePage::StateChanged( StateChangedType nType ) { Window::StateChanged( nType ); - if ( nType == STATE_CHANGE_CONTROLBACKGROUND ) + if ( nType == StateChangedType::CONTROLBACKGROUND ) { ImplInitSettings(); Invalidate(); diff --git a/cui/source/options/connpooloptions.cxx b/cui/source/options/connpooloptions.cxx index f905137967c5..7743d8207874 100644 --- a/cui/source/options/connpooloptions.cxx +++ b/cui/source/options/connpooloptions.cxx @@ -220,7 +220,7 @@ namespace offapp void DriverListControl::StateChanged( StateChangedType nStateChange ) { - if (STATE_CHANGE_ENABLE == nStateChange) + if (StateChangedType::ENABLE == nStateChange) Window::Invalidate(INVALIDATE_UPDATE); EditBrowseBox::StateChanged( nStateChange ); } diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 7475cd1af6f9..e52956604e5a 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -884,7 +884,7 @@ void OfaAutocorrReplacePage::StateChanged(StateChangedType nStateChange) { SfxTabPage::StateChanged(nStateChange); - if (nStateChange == STATE_CHANGE_INITSHOW) + if (nStateChange == StateChangedType::INITSHOW) { setTabs(); } diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index 4121b72341d7..ed1599155ae1 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -205,9 +205,9 @@ void SvxNumberPreview::InitSettings( bool bForeground, bool bBackground ) void SvxNumberPreview::StateChanged( StateChangedType nType ) { - if ( nType == STATE_CHANGE_CONTROLFOREGROUND ) + if ( nType == StateChangedType::CONTROLFOREGROUND ) InitSettings( true, false ); - else if ( nType == STATE_CHANGE_CONTROLBACKGROUND ) + else if ( nType == StateChangedType::CONTROLBACKGROUND ) InitSettings( false, true ); Window::StateChanged( nType ); |