diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-11-12 00:46:22 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2013-11-14 09:23:19 +0100 |
commit | ebeff3f074dd94dce4ce6cc55abd0495103684bd (patch) | |
tree | 4ba353f7ad94480fccfed3e78e305b80c0e5627b /sw/source/ui/shells | |
parent | xub_StrLen to sal_Int32 and minor optimizations (diff) | |
download | core-ebeff3f074dd94dce4ce6cc55abd0495103684bd.tar.gz core-ebeff3f074dd94dce4ce6cc55abd0495103684bd.zip |
xub_StrLen to sal_Int32 in SwIndex and some related
Change-Id: I66735635a88844c30a7fa1c886d2c1df34008f4f
Diffstat (limited to 'sw/source/ui/shells')
-rw-r--r-- | sw/source/ui/shells/langhelper.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/ui/shells/langhelper.cxx b/sw/source/ui/shells/langhelper.cxx index b11a08bacb83..85e30b529e30 100644 --- a/sw/source/ui/shells/langhelper.cxx +++ b/sw/source/ui/shells/langhelper.cxx @@ -557,10 +557,9 @@ namespace SwLangHelper aText = pNode->GetTxt(); if (!aText.isEmpty()) { - xub_StrLen nStt = 0; - xub_StrLen nEnd = pCrsr->GetPoint()->nContent.GetIndex(); + sal_Int32 nEnd = pCrsr->GetPoint()->nContent.GetIndex(); // at most 100 chars to the left... - nStt = nEnd > 100 ? nEnd - 100 : 0; + const sal_Int32 nStt = nEnd > 100 ? nEnd - 100 : 0; // ... and 100 to the right of the cursor position nEnd = aText.getLength() - nEnd > 100 ? nEnd + 100 : aText.getLength(); aText = aText.copy( nStt, nEnd - nStt ); |