summaryrefslogtreecommitdiff
path: root/sc
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 /sc
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 'sc')
-rw-r--r--sc/source/ui/view/tabvwsha.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx
index 57ad8c88ca2d..b7ae58282bbf 100644
--- a/sc/source/ui/view/tabvwsha.cxx
+++ b/sc/source/ui/view/tabvwsha.cxx
@@ -211,12 +211,12 @@ void ScTabViewShell::GetState( SfxItemSet& rSet )
case SID_SEARCH_OPTIONS:
{
// Anything goes
- sal_uInt16 nOptions = 0xffff;
+ SearchOptionFlags nOptions = SearchOptionFlags::ALL;
// No replacement if ReadOnly
if (GetViewData().GetDocShell()->IsReadOnly())
- nOptions &= ~( SEARCH_OPTIONS_REPLACE | SEARCH_OPTIONS_REPLACE_ALL );
- rSet.Put( SfxUInt16Item( nWhich, nOptions ) );
+ nOptions &= ~SearchOptionFlags( SearchOptionFlags::REPLACE | SearchOptionFlags::REPLACE_ALL );
+ rSet.Put( SfxUInt16Item( nWhich, static_cast<sal_uInt16>(nOptions) ) );
}
break;