summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-22 17:41:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-22 18:19:18 +0200
commit99327498541ed25304d5909d29ae2f126d855f23 (patch)
tree94a33b2378deea8102048a5cb192d18c3eb7c482 /svtools
parentb7f20ef33f5a32cc4726db3ff22056850426073e (diff)
Use conventional std::vector idioms
Change-Id: I4d26372ea40e7890b76461a764435f8948466ae1
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/edit/editsyntaxhighlighter.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/edit/editsyntaxhighlighter.cxx b/svtools/source/edit/editsyntaxhighlighter.cxx
index 0d480d25a5ef..ba1aca286faa 100644
--- a/svtools/source/edit/editsyntaxhighlighter.cxx
+++ b/svtools/source/edit/editsyntaxhighlighter.cxx
@@ -176,10 +176,10 @@ void MultiLineEditSyntaxHighlight::UpdateData()
GetTextEngine()->RemoveAttribs( nLine, sal_True );
std::vector<HighlightPortion> aPortions;
aHighlighter.getHighlightPortions( nLine, aLine, aPortions );
- for ( size_t i = 0; i < aPortions.size(); i++ )
+ for (std::vector<HighlightPortion>::iterator i(aPortions.begin());
+ i != aPortions.end(); ++i)
{
- HighlightPortion& r = aPortions[i];
- GetTextEngine()->SetAttrib( TextAttribFontColor( GetColorValue(r.tokenType) ), nLine, r.nBegin, r.nEnd, sal_True );
+ GetTextEngine()->SetAttrib( TextAttribFontColor( GetColorValue(i->tokenType) ), nLine, i->nBegin, i->nEnd, sal_True );
}
}
GetTextView()->ShowCursor( false, true );