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 ...@@ -676,13 +676,9 @@ void SimpleTokenizer_Impl::getHighlightPortions( sal_uInt32 nParseLine, const OU
// Loop over all the tokens // Loop over all the tokens
while( getNextToken( eType, pStartPos, pEndPos ) ) while( getNextToken( eType, pStartPos, pEndPos ) )
{ {
HighlightPortion portion; portions.push_back(
HighlightPortion(
portion.nBegin = pStartPos - mpStringBegin; pStartPos - mpStringBegin, pEndPos - mpStringBegin, eType));
portion.nEnd = pEndPos - mpStringBegin;
portion.tokenType = eType;
portions.push_back(portion);
} }
} }
......
...@@ -48,6 +48,11 @@ struct HighlightPortion { ...@@ -48,6 +48,11 @@ struct HighlightPortion {
sal_Int32 nBegin; sal_Int32 nBegin;
sal_Int32 nEnd; sal_Int32 nEnd;
TokenTypes tokenType; 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