Kaydet (Commit) 8e48edad authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Minor clean-up

Change-Id: I48280cf6e12a5219adaa34f57323a93d21c3f554
üst 93e652d1
......@@ -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));
}
}
......
......@@ -48,6 +48,11 @@ struct HighlightPortion {
sal_Int32 nBegin;
sal_Int32 nEnd;
TokenTypes tokenType;
HighlightPortion(
sal_Int32 theBegin, sal_Int32 theEnd, TokenTypes theTokenType):
nBegin(theBegin), nEnd(theEnd), tokenType(theTokenType)
{}
};
/////////////////////////////////////////////////////////////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment