diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-30 12:15:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-31 10:00:07 +0200 |
commit | 8b52d4e73a06d433d128d61a4939e92e4a497d71 (patch) | |
tree | 7888aa54b430ea537ad7c8adb59379163d4d4a64 /sw/source/uibase/uno/unotxdoc.cxx | |
parent | fd405ab457183f1c0d48d47bbd3308edb2e30242 (diff) |
convert SwDocPositions to scoped enum
Change-Id: Idd9414b4a10398130337e474fb8fd4063e3bd4f8
Diffstat (limited to 'sw/source/uibase/uno/unotxdoc.cxx')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 121416245fea..4944162bcd7d 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -761,8 +761,8 @@ sal_Int32 SwXTextDocument::replaceAll(const Reference< util::XSearchDescriptor > util::SearchOptions2 aSearchOpt; pSearch->FillSearchOptions( aSearchOpt ); - SwDocPositions eStart = pSearch->m_bBack ? DOCPOS_END : DOCPOS_START; - SwDocPositions eEnd = pSearch->m_bBack ? DOCPOS_START : DOCPOS_END; + SwDocPositions eStart = pSearch->m_bBack ? SwDocPositions::End : SwDocPositions::Start; + SwDocPositions eEnd = pSearch->m_bBack ? SwDocPositions::Start : SwDocPositions::End; // Search should take place anywhere pUnoCursor->SetRemainInSection(false); @@ -897,8 +897,8 @@ SwUnoCursor* SwXTextDocument::FindAny(const Reference< util::XSearchDescriptor > eRanges = FND_IN_OTHER; if(bAll) //always - everywhere? eRanges = FND_IN_SELALL; - SwDocPositions eStart = !bAll ? DOCPOS_CURR : pSearch->m_bBack ? DOCPOS_END : DOCPOS_START; - SwDocPositions eEnd = pSearch->m_bBack ? DOCPOS_START : DOCPOS_END; + SwDocPositions eStart = !bAll ? SwDocPositions::Curr : pSearch->m_bBack ? SwDocPositions::End : SwDocPositions::Start; + SwDocPositions eEnd = pSearch->m_bBack ? SwDocPositions::Start : SwDocPositions::End; nResult = 0; for (int nSearchProc = 0; nSearchProc < 2; ++nSearchProc) |