diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2013-01-10 09:34:42 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2013-01-10 09:34:42 +0400 |
commit | 469cec21f7da6a680897615f912d137f94e62ee9 (patch) | |
tree | b279188f6577ce8d8417ec38ca26f9f5ec54e2e4 /sd | |
parent | 24edbb1900e95d3fee6c27006191e9ab67f60c21 (diff) |
fix Search->indexOf conversion
Change-Id: I2b02b62311c00fc47892ea7e24d8bc01ac4fb149
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/custsdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/dlg/custsdlg.cxx b/sd/source/ui/dlg/custsdlg.cxx index d55a688b0776..e6149eaacc92 100644 --- a/sd/source/ui/dlg/custsdlg.cxx +++ b/sd/source/ui/dlg/custsdlg.cxx @@ -198,14 +198,14 @@ IMPL_LINK( SdCustomShowDlg, ClickButtonHdl, void *, p ) OUString aStr( pShow->GetName() ); OUString aStrCopy( SdResId( STR_COPY_CUSTOMSHOW ) ); - sal_uInt16 nStrPos = aStr.indexOf( aStrCopy ); + sal_Int32 nStrPos = aStr.indexOf( aStrCopy ); sal_Int32 nNum = 1; - if( nStrPos == STRING_NOTFOUND ) + if( nStrPos < 0 ) { aStr = aStr + " (" + aStrCopy + OUString::valueOf( nNum ) + ")"; nStrPos = aStr.indexOf( aStrCopy ); } - nStrPos = nStrPos + (sal_uInt16)aStrCopy.getLength(); + nStrPos = nStrPos + aStrCopy.getLength(); // Um nicht ins Nirvana zu greifen (--> Endlosschleife) if( nStrPos >= aStr.getLength() ) { |