diff options
Diffstat (limited to 'sw/source/uibase/uiview/viewsrch.cxx')
-rw-r--r-- | sw/source/uibase/uiview/viewsrch.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/uiview/viewsrch.cxx b/sw/source/uibase/uiview/viewsrch.cxx index 8ed5c40b764c..e23c53c30194 100644 --- a/sw/source/uibase/uiview/viewsrch.cxx +++ b/sw/source/uibase/uiview/viewsrch.cxx @@ -798,11 +798,11 @@ void SwView::StateSearch(SfxItemSet &rSet) { case SID_SEARCH_OPTIONS: { - sal_uInt16 nOpt = 0xFFFF; + SearchOptionFlags nOpt = SearchOptionFlags::ALL; if( GetDocShell()->IsReadOnly() ) - nOpt &= ~( SEARCH_OPTIONS_REPLACE | - SEARCH_OPTIONS_REPLACE_ALL ); - rSet.Put( SfxUInt16Item( SID_SEARCH_OPTIONS, nOpt)); + nOpt &= ~SearchOptionFlags( SearchOptionFlags::REPLACE | + SearchOptionFlags::REPLACE_ALL ); + rSet.Put( SfxUInt16Item( SID_SEARCH_OPTIONS, static_cast<sal_uInt16>(nOpt) )); } break; case SID_SEARCH_ITEM: |