summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-22 18:10:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-22 18:19:18 +0200
commit93e652d1faf6584173161f8ba8ab00003280203e (patch)
tree15c86794a139ecc10ef140474d780d010c1a8f20 /comphelper
parent99327498541ed25304d5909d29ae2f126d855f23 (diff)
HighlightPortion's indizes into strings should be sal_Int32
(Had to fix type of some variables holding TextPaM::GetIndex() values from sal_uLong to sal_uInt16 to avoid -Werror,-Wsign-compare failures when comparing those against HightlightPortion's nEnd.) Change-Id: Ia8a0ba682ae28e86e394ee48adff3225eb8de053
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/syntaxhighlight.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/syntaxhighlight.cxx b/comphelper/source/misc/syntaxhighlight.cxx
index 63a4b1bf077e..68d1701b9080 100644
--- a/comphelper/source/misc/syntaxhighlight.cxx
+++ b/comphelper/source/misc/syntaxhighlight.cxx
@@ -678,8 +678,8 @@ void SimpleTokenizer_Impl::getHighlightPortions( sal_uInt32 nParseLine, const OU
{
HighlightPortion portion;
- portion.nBegin = (sal_uInt16)(pStartPos - mpStringBegin);
- portion.nEnd = (sal_uInt16)(pEndPos - mpStringBegin);
+ portion.nBegin = pStartPos - mpStringBegin;
+ portion.nEnd = pEndPos - mpStringBegin;
portion.tokenType = eType;
portions.push_back(portion);