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 /starmath | |
parent | 0bc6ea3637e279fa2807d8ee649fb33f1ae6da47 (diff) |
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 'starmath')
-rw-r--r-- | starmath/source/toolbox.cxx | 2 | ||||
-rw-r--r-- | starmath/source/view.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/toolbox.cxx b/starmath/source/toolbox.cxx index 455441f4ab61..04a93553be68 100644 --- a/starmath/source/toolbox.cxx +++ b/starmath/source/toolbox.cxx @@ -201,7 +201,7 @@ void SmToolBoxWindow::DataChanged( const DataChangedEvent &rEvt ) void SmToolBoxWindow::StateChanged( StateChangedType nStateChange ) { static bool bSetPosition = true; - if (STATE_CHANGE_INITSHOW == nStateChange) + if (StateChangedType::INITSHOW == nStateChange) { SetCategory( nActiveCategoryRID == USHRT_MAX ? RID_UNBINOPS_CAT : nActiveCategoryRID ); diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index c023365333a1..f9c77ca2b4ca 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -128,7 +128,7 @@ SmGraphicWindow::~SmGraphicWindow() void SmGraphicWindow::StateChanged( StateChangedType eType ) { - if ( eType == STATE_CHANGE_INITSHOW ) + if ( eType == StateChangedType::INITSHOW ) Show(); ScrollableWindow::StateChanged( eType ); } @@ -796,7 +796,7 @@ SfxChildAlignment SmCmdBoxWindow::CheckAlignment(SfxChildAlignment eActual, void SmCmdBoxWindow::StateChanged( StateChangedType nStateChange ) { - if (STATE_CHANGE_INITSHOW == nStateChange) + if (StateChangedType::INITSHOW == nStateChange) { Resize(); // avoid SmEditWindow not being painted correctly |