summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
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;