summaryrefslogtreecommitdiff
path: root/svx/source/form/fmsrcimp.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-04-13 21:20:25 +0200
committerJulien Nabet <serval2412@yahoo.fr>2016-04-14 07:03:44 +0000
commit85dd50819b8b736e8a791ed3f001145a0df54265 (patch)
tree0e40372cdb815aeb26e9a06a7a6d86cd348fba8a /svx/source/form/fmsrcimp.cxx
parent466257699559390237615f651ce0f30f07543434 (diff)
Use const_iterator when possible (svx/dialog,engine3d,fmcomp,form)
Change-Id: Ie08593a3b5b3043a1f212d51d77ced467c309749 Reviewed-on: https://gerrit.libreoffice.org/24064 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svx/source/form/fmsrcimp.cxx')
-rw-r--r--svx/source/form/fmsrcimp.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/svx/source/form/fmsrcimp.cxx b/svx/source/form/fmsrcimp.cxx
index 14fcaf9b4b2f..d82eb583c30b 100644
--- a/svx/source/form/fmsrcimp.cxx
+++ b/svx/source/form/fmsrcimp.cxx
@@ -398,7 +398,7 @@ FmSearchEngine::SEARCH_RESULT FmSearchEngine::SearchSpecial(bool _bSearchForNull
Any aStartMark;
try { aStartMark = m_xSearchCursor.getBookmark(); }
catch ( const Exception& ) { DBG_UNHANDLED_EXCEPTION(); return SR_ERROR; }
- FieldCollection::iterator iterInitialField = iterFieldLoop;
+ FieldCollection::const_iterator iterInitialField = iterFieldLoop;
bool bFound(false);
@@ -463,7 +463,7 @@ FmSearchEngine::SEARCH_RESULT FmSearchEngine::SearchWildcard(const OUString& str
Any aStartMark;
try { aStartMark = m_xSearchCursor.getBookmark(); }
catch ( const Exception& ) { DBG_UNHANDLED_EXCEPTION(); return SR_ERROR; }
- FieldCollection::iterator iterInitialField = iterFieldLoop;
+ FieldCollection::const_iterator iterInitialField = iterFieldLoop;
WildCard aSearchExpression(strExpression);
@@ -546,7 +546,7 @@ FmSearchEngine::SEARCH_RESULT FmSearchEngine::SearchRegularApprox(const OUString
Any aStartMark;
try { aStartMark = m_xSearchCursor.getBookmark(); }
catch ( const Exception& ) { DBG_UNHANDLED_EXCEPTION(); return SR_ERROR; }
- FieldCollection::iterator iterInitialField = iterFieldLoop;
+ FieldCollection::const_iterator iterInitialField = iterFieldLoop;
// Parameter sammeln
SearchOptions2 aParam;
@@ -769,8 +769,9 @@ bool FmSearchEngine::GetCaseSensitive() const
void FmSearchEngine::clearControlTexts()
{
+ ControlTextSuppliers::const_iterator aEnd = m_aControlTexts.end();
for ( ControlTextSuppliers::iterator aIter = m_aControlTexts.begin();
- aIter < m_aControlTexts.end();
+ aIter != aEnd;
++aIter
)
{