summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-22 18:15:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-22 18:19:19 +0200
commit8e48edad588dbbb79c0857c3d8bbfd7434a40594 (patch)
tree25ae259b9d9f43bba83b9415e195f01f4864000a /comphelper
parent93e652d1faf6584173161f8ba8ab00003280203e (diff)
Minor clean-up
Change-Id: I48280cf6e12a5219adaa34f57323a93d21c3f554
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/syntaxhighlight.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx
index 68d1701b9080..153ec9081da6 100644
--- a/comphelper/source/misc/syntaxhighlight.cxx
+++ b/comphelper/source/misc/syntaxhighlight.cxx
@@ -676,13 +676,9 @@ void SimpleTokenizer_Impl::getHighlightPortions( sal_uInt32 nParseLine, const OU
// Loop over all the tokens
while( getNextToken( eType, pStartPos, pEndPos ) )
{
- HighlightPortion portion;
-
- portion.nBegin = pStartPos - mpStringBegin;
- portion.nEnd = pEndPos - mpStringBegin;
- portion.tokenType = eType;
-
- portions.push_back(portion);
+ portions.push_back(
+ HighlightPortion(
+ pStartPos - mpStringBegin, pEndPos - mpStringBegin, eType));
}
}