summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtimp.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx
index 3f5ac56b279a..eadf77c4d3a3 100644
--- a/xmloff/source/text/txtimp.cxx
+++ b/xmloff/source/text/txtimp.cxx
@@ -2612,11 +2612,7 @@ bool XMLTextImportHelper::FindAndRemoveBookmarkStartRange(
o_rXmlId = std::get<1>(rEntry);
o_rpRDFaAttributes = std::get<2>(rEntry);
m_xImpl->m_BookmarkStartRanges.erase(sName);
- auto it(m_xImpl->m_BookmarkVector.begin());
- while (it != m_xImpl->m_BookmarkVector.end() && *it != sName)
- {
- ++it;
- }
+ auto it = std::find(m_xImpl->m_BookmarkVector.begin(), m_xImpl->m_BookmarkVector.end(), sName);
if (it!=m_xImpl->m_BookmarkVector.end())
{
m_xImpl->m_BookmarkVector.erase(it);