From f091a4d82e383b2beab91ecd01d9f6a700377a2e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Aug 2016 09:42:09 +0200 Subject: convert SearchLabel to scoped enum Change-Id: I0c62a3166b9284895f119c600776dc2c7d6d1078 --- sc/source/ui/view/viewfun2.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index 85f969e87a95..a92d2bea2985 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -1657,7 +1657,7 @@ void ScViewFunc::AutoFormat( sal_uInt16 nFormatNo ) bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, bool bAddUndo, bool bIsApi ) { - SvxSearchDialogWrapper::SetSearchLabel(SL_Empty); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::Empty); ScDocShell* pDocSh = GetViewData().GetDocShell(); ScDocument& rDoc = pDocSh->GetDocument(); ScMarkData& rMark = GetViewData().GetMarkData(); @@ -1792,9 +1792,9 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, if (!bIsApi) { if ( nStartTab == nEndTab ) - SvxSearchDialogWrapper::SetSearchLabel(SL_EndSheet); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::EndSheet); else - SvxSearchDialogWrapper::SetSearchLabel(SL_End); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::End); ScDocument::GetSearchAndReplaceStart( *pSearchItem, nCol, nRow ); if (pSearchItem->GetBackward()) @@ -1818,7 +1818,7 @@ bool ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, if (!bIsApi) { GetViewData().GetViewShell()->libreOfficeKitViewCallback(LOK_CALLBACK_SEARCH_NOT_FOUND, pSearchItem->GetSearchString().toUtf8().getStr()); - SvxSearchDialogWrapper::SetSearchLabel(SL_NotFound); + SvxSearchDialogWrapper::SetSearchLabel(SearchLabel::NotFound); } break; // break 'while (TRUE)' -- cgit