summaryrefslogtreecommitdiff
path: root/svx/source/dialog/srchctrl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-16 13:44:05 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-04-20 08:23:13 +0000
commit9c50c39fb4410d966d12aee915f6dc9ed53d0211 (patch)
tree597e25f7c6fdd078db063894e4758caaa3a59729 /svx/source/dialog/srchctrl.cxx
parente1929061783b9d0276a51ee5f1979cf62f434c5c (diff)
convert SEARCH_OPTIONS constants to scoped enum
Change-Id: Id0f0c7d692410cf5e1477c5180e7cfb8e7b0f52b Reviewed-on: https://gerrit.libreoffice.org/15345 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/dialog/srchctrl.cxx')
-rw-r--r--svx/source/dialog/srchctrl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/dialog/srchctrl.cxx b/svx/source/dialog/srchctrl.cxx
index e26a85a8bff3..460ebad2a0d1 100644
--- a/svx/source/dialog/srchctrl.cxx
+++ b/svx/source/dialog/srchctrl.cxx
@@ -55,7 +55,7 @@ void SvxSearchController::StateChanged( sal_uInt16 nSID, SfxItemState eState,
else if ( SID_SEARCH_OPTIONS == nSID )
{
DBG_ASSERT( pState->ISA(SfxUInt16Item), "wrong item type" );
- sal_uInt16 nFlags = (sal_uInt16) static_cast<const SfxUInt16Item*>(pState)->GetValue();
+ SearchOptionFlags nFlags = (SearchOptionFlags) static_cast<const SfxUInt16Item*>(pState)->GetValue();
rSrchDlg.EnableControls_Impl( nFlags );
}
else if ( SID_SEARCH_ITEM == nSID )
@@ -65,7 +65,7 @@ void SvxSearchController::StateChanged( sal_uInt16 nSID, SfxItemState eState,
}
}
else if ( SID_SEARCH_OPTIONS == nSID || SID_SEARCH_ITEM == nSID )
- rSrchDlg.EnableControls_Impl( 0 );
+ rSrchDlg.EnableControls_Impl( SearchOptionFlags::NONE );
}