summaryrefslogtreecommitdiff
path: root/svx/source/form
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-24 10:55:12 +0200
committerNoel Grandin <noel@peralex.com>2016-08-25 08:40:00 +0200
commit1332241a03500b09ab846a56e86a25e18b8230db (patch)
tree200631906c32c30866f05e1378e038cdd2ad601d /svx/source/form
parent479aa67fd94d648cb5637773189bfb286ff78d5c (diff)
convert FmSearchProgress::State to scoped enum
Change-Id: I7ca1afedd6ca9b626c1e61322bffc66016ec7d58
Diffstat (limited to 'svx/source/form')
-rw-r--r--svx/source/form/fmsrcimp.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx
index a088578d5576..2d442be42ed5 100644
--- a/svx/source/form/fmsrcimp.cxx
+++ b/svx/source/form/fmsrcimp.cxx
@@ -865,7 +865,7 @@ void FmSearchEngine::PropagateProgress(bool _bDontPropagateOverflow)
FmSearchProgress aProgress;
try
{
- aProgress.aSearchState = FmSearchProgress::STATE_PROGRESS;
+ aProgress.aSearchState = FmSearchProgress::State::Progress;
aProgress.nCurrentRecord = m_xSearchCursor.getRow() - 1;
if (m_bForward)
aProgress.bOverflow = !_bDontPropagateOverflow && m_xSearchCursor.isFirst();
@@ -994,19 +994,19 @@ IMPL_LINK_NOARG_TYPED(FmSearchEngine, OnSearchTerminated, FmSearchThread*, void)
switch (m_srResult)
{
case SearchResult::Error :
- aProgress.aSearchState = FmSearchProgress::STATE_ERROR;
+ aProgress.aSearchState = FmSearchProgress::State::Error;
break;
case SearchResult::Found :
- aProgress.aSearchState = FmSearchProgress::STATE_SUCCESSFULL;
+ aProgress.aSearchState = FmSearchProgress::State::Successful;
aProgress.aBookmark = m_aPreviousLocBookmark;
aProgress.nFieldIndex = m_iterPreviousLocField - m_arrUsedFields.begin();
break;
case SearchResult::NotFound :
- aProgress.aSearchState = FmSearchProgress::STATE_NOTHINGFOUND;
+ aProgress.aSearchState = FmSearchProgress::State::NothingFound;
aProgress.aBookmark = m_xSearchCursor.getBookmark();
break;
case SearchResult::Cancelled :
- aProgress.aSearchState = FmSearchProgress::STATE_CANCELED;
+ aProgress.aSearchState = FmSearchProgress::State::Canceled;
aProgress.aBookmark = m_xSearchCursor.getBookmark();
break;
}
@@ -1031,7 +1031,7 @@ IMPL_LINK_TYPED(FmSearchEngine, OnNewRecordCount, sal_Int32, theCounter, void)
FmSearchProgress aProgress;
aProgress.nCurrentRecord = theCounter;
- aProgress.aSearchState = FmSearchProgress::STATE_PROGRESS_COUNTING;
+ aProgress.aSearchState = FmSearchProgress::State::ProgressCounting;
m_aProgressHandler.Call(&aProgress);
}