diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-16 13:44:05 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-04-20 08:23:13 +0000 |
commit | 9c50c39fb4410d966d12aee915f6dc9ed53d0211 (patch) | |
tree | 597e25f7c6fdd078db063894e4758caaa3a59729 /sd | |
parent | e1929061783b9d0276a51ee5f1979cf62f434c5c (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 'sd')
-rw-r--r-- | sd/source/ui/docshell/docshell.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx index f51d93407a23..f49f523eaec5 100644 --- a/sd/source/ui/docshell/docshell.cxx +++ b/sd/source/ui/docshell/docshell.cxx @@ -228,21 +228,21 @@ void DrawDocShell::GetState(SfxItemSet &rSet) case SID_SEARCH_OPTIONS: { - sal_uInt16 nOpt = SEARCH_OPTIONS_SEARCH | - SEARCH_OPTIONS_WHOLE_WORDS | - SEARCH_OPTIONS_BACKWARDS | - SEARCH_OPTIONS_REG_EXP | - SEARCH_OPTIONS_EXACT | - SEARCH_OPTIONS_SIMILARITY | - SEARCH_OPTIONS_SELECTION; + SearchOptionFlags nOpt = SearchOptionFlags::SEARCH | + SearchOptionFlags::WHOLE_WORDS | + SearchOptionFlags::BACKWARDS | + SearchOptionFlags::REG_EXP | + SearchOptionFlags::EXACT | + SearchOptionFlags::SIMILARITY | + SearchOptionFlags::SELECTION; if (!IsReadOnly()) { - nOpt |= SEARCH_OPTIONS_REPLACE; - nOpt |= SEARCH_OPTIONS_REPLACE_ALL; + nOpt |= SearchOptionFlags::REPLACE; + nOpt |= SearchOptionFlags::REPLACE_ALL; } - rSet.Put(SfxUInt16Item(nWhich, nOpt)); + rSet.Put(SfxUInt16Item(nWhich, static_cast<sal_uInt16>(nOpt))); } break; |