From 99327498541ed25304d5909d29ae2f126d855f23 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 22 Oct 2013 17:41:32 +0200 Subject: Use conventional std::vector idioms Change-Id: I4d26372ea40e7890b76461a764435f8948466ae1 --- svtools/source/edit/editsyntaxhighlighter.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svtools') 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 aPortions; aHighlighter.getHighlightPortions( nLine, aLine, aPortions ); - for ( size_t i = 0; i < aPortions.size(); i++ ) + for (std::vector::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 ); -- cgit