From 3cbfcee36dd16e451d76c561eaaaee0ff29b01a5 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sun, 2 Feb 2014 22:16:48 -0600 Subject: xub_StrLen and tools/string.hxx final straw Thre is still some 0xffff limit left and possibly some less than gracefully handled overflow/error cases Change-Id: I00957ee3a30b02f73918ea49d7353056263dc638 Reviewed-on: https://gerrit.libreoffice.org/7787 Reviewed-by: Norbert Thiebaud Tested-by: Norbert Thiebaud --- vcl/source/edit/texteng.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 06ed0d529ec7..a0e27e800962 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -703,7 +703,7 @@ TextPaM TextEngine::ImpInsertText( sal_Unicode c, const TextSelection& rCurSel, if (xISC.is()) { - xub_StrLen nTmpPos = aPaM.GetIndex(); + sal_Int32 nTmpPos = aPaM.GetIndex(); sal_Int16 nCheckMode = aCTLOptions.IsCTLSequenceCheckingRestricted() ? i18n::InputSequenceCheckMode::STRICT : i18n::InputSequenceCheckMode::BASIC; -- cgit