summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/view/hintwin.cxx
diff options
context:
space:
mode:
authorelixir <prashant3.yishu@gmail.com>2013-03-07 19:35:49 +0530
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-11 15:50:44 +0000
commit7d1f4cdec307bb1e761bb5dd3d8231bba5833e10 (patch)
tree106a20fe24e8935e9b4943f17dad49dba67aa013 /sc/source/ui/view/hintwin.cxx
parentUnused bForce parameter (diff)
downloadcore-7d1f4cdec307bb1e761bb5dd3d8231bba5833e10.tar.gz
core-7d1f4cdec307bb1e761bb5dd3d8231bba5833e10.zip
fdo#38838: Converting String/UniString to OUString
Change-Id: If64db96005fcd8a42e4fa24041867b99183965f9 Reviewed-on: https://gerrit.libreoffice.org/2586 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sc/source/ui/view/hintwin.cxx')
-rw-r--r--sc/source/ui/view/hintwin.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/view/hintwin.cxx b/sc/source/ui/view/hintwin.cxx
index e277e96981b1..47aeac7ef63a 100644
--- a/sc/source/ui/view/hintwin.cxx
+++ b/sc/source/ui/view/hintwin.cxx
@@ -46,8 +46,8 @@ ScHintWindow::ScHintWindow( Window* pParent, const String& rTit, const String& r
SetFont( aTextFont );
Size aTextSize;
- xub_StrLen nIndex = 0;
- while ( nIndex != STRING_NOTFOUND )
+ sal_Int32 nIndex = 0;
+ while ( nIndex != -1 )
{
String aLine = aMessage.GetToken( 0, CHAR_CR, nIndex );
Size aLineSize( GetTextWidth( aLine ), GetTextHeight() );
@@ -78,9 +78,9 @@ void ScHintWindow::Paint( const Rectangle& /* rRect */ )
DrawText( Point(HINT_MARGIN,HINT_MARGIN), aTitle );
SetFont( aTextFont );
- xub_StrLen nIndex = 0;
+ sal_Int32 nIndex = 0;
Point aLineStart = aTextStart;
- while ( nIndex != STRING_NOTFOUND )
+ while ( nIndex != -1 )
{
String aLine = aMessage.GetToken( 0, CHAR_CR, nIndex );
DrawText( aLineStart, aLine );