summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/outdev3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/outdev3.cxx')
-rw-r--r--vcl/source/gdi/outdev3.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index cc3096685a2c..8d97a433223e 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -6178,7 +6178,7 @@ void OutputDevice::ImplDrawText( OutputDevice& rTargetDevice, const Rectangle& r
aLastLine = convertLineEnd(aStr.copy(pLineInfo->GetIndex()), LINEEND_LF);
// Replace all LineFeeds with Spaces
OUStringBuffer aLastLineBuffer(aLastLine);
- xub_StrLen nLastLineLen = aLastLineBuffer.getLength();
+ sal_Int32 nLastLineLen = aLastLineBuffer.getLength();
for ( i = 0; i < nLastLineLen; i++ )
{
if ( aLastLineBuffer[ i ] == '\n' )
@@ -7717,8 +7717,8 @@ xub_StrLen OutputDevice::HasGlyphs( const Font& rTempFont, const OUString& rStr,
{
if( nIndex >= rStr.getLength() )
return nIndex;
- xub_StrLen nEnd = nIndex + nLen;
- if( (sal_Int32)nIndex+nLen > rStr.getLength() )
+ sal_Int32 nEnd = nIndex + nLen;
+ if( nIndex+nLen > rStr.getLength() )
nEnd = rStr.getLength();
DBG_ASSERT( nIndex < nEnd, "StartPos >= EndPos?" );