summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-02 08:06:45 +0200
committerNoel Grandin <noel@peralex.com>2015-03-02 08:59:18 +0200
commit08a9452b677bc68f56fbac3638cfaeff9f90b1eb (patch)
tree62407527420e6462000582220e5aa9f522dee0a9
parentd8bb694c831d37cb4344e3352fe08e2919a7cdc1 (diff)
-Werror,-Wsign-compare
Change-Id: I18e4249d574f0d48e2c2027a89a37125d09e6702
-rw-r--r--vcl/generic/glyphs/gcach_ftyp.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx
index 16f123f81595..fd09cf405fbc 100644
--- a/vcl/generic/glyphs/gcach_ftyp.cxx
+++ b/vcl/generic/glyphs/gcach_ftyp.cxx
@@ -1211,17 +1211,19 @@ bool ServerFont::GetGlyphBitmap8( sal_GlyphId aGlyphId, RawBitmap& rRawBitmap )
unsigned char* pDest = rRawBitmap.mpBits.get();
if( !bEmbedded )
{
- for( int y = rRawBitmap.mnHeight, x; --y >= 0 ; )
+ unsigned int x;
+ for( int y = rRawBitmap.mnHeight; --y >= 0 ; )
{
for( x = 0; x < rBitmapFT.width; ++x )
*(pDest++) = *(pSrc++);
- for(; x < int(rRawBitmap.mnScanlineSize); ++x )
+ for(; x < rRawBitmap.mnScanlineSize; ++x )
*(pDest++) = 0;
}
}
else
{
- for( int y = rRawBitmap.mnHeight, x; --y >= 0 ; )
+ unsigned int x;
+ for( int y = rRawBitmap.mnHeight; --y >= 0 ; )
{
unsigned char nSrc = 0;
for( x = 0; x < rBitmapFT.width; ++x, nSrc+=nSrc )
@@ -1230,7 +1232,7 @@ bool ServerFont::GetGlyphBitmap8( sal_GlyphId aGlyphId, RawBitmap& rRawBitmap )
nSrc = *(pSrc++);
*(pDest++) = (0x7F - nSrc) >> 8;
}
- for(; x < int(rRawBitmap.mnScanlineSize); ++x )
+ for(; x < rRawBitmap.mnScanlineSize; ++x )
*(pDest++) = 0;
}
}