summaryrefslogtreecommitdiff
path: root/editeng/source/editeng/impedit4.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-03-10 18:00:58 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-03-11 00:14:56 +0100
commite9171066136868fe89947dda5095e9479d5e50e7 (patch)
treeeda06f3196145b6f3e66c178425ce86735721a24 /editeng/source/editeng/impedit4.cxx
parentadc6ba2ad502f095dde8f36242fda9aaa6c276fd (diff)
Use for-range loops in editeng
Change-Id: I6abf56aba1211e1288bd8ee673e0614d1b5dc1d6 Reviewed-on: https://gerrit.libreoffice.org/51050 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'editeng/source/editeng/impedit4.cxx')
-rw-r--r--editeng/source/editeng/impedit4.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx
index 38d627b2142c..75cb969b1887 100644
--- a/editeng/source/editeng/impedit4.cxx
+++ b/editeng/source/editeng/impedit4.cxx
@@ -1381,10 +1381,8 @@ void ImpEditEngine::GetAllMisspellRanges( std::vector<editeng::MisspellRanges>&
void ImpEditEngine::SetAllMisspellRanges( const std::vector<editeng::MisspellRanges>& rRanges )
{
EditDoc& rDoc = GetEditDoc();
- std::vector<editeng::MisspellRanges>::const_iterator it = rRanges.begin(), itEnd = rRanges.end();
- for (; it != itEnd; ++it)
+ for (auto const& rParaRanges : rRanges)
{
- const editeng::MisspellRanges& rParaRanges = *it;
ContentNode* pNode = rDoc.GetObject(rParaRanges.mnParagraph);
if (!pNode)
continue;