diff options
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/svapp.cxx | 2 | ||||
-rw-r--r-- | vcl/source/font/fontcharmap.cxx | 4 | ||||
-rw-r--r-- | vcl/source/fontsubset/cff.cxx | 2 | ||||
-rw-r--r-- | vcl/source/outdev/font.cxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index 00255a1a63bb..585428809bc6 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -135,7 +135,7 @@ namespace static ReservedKeys aKeys ( &ImplReservedKeys[0], - sizeof(ImplReservedKeys) / sizeof(ImplReservedKey) + SAL_N_ELEMENTS(ImplReservedKeys) ); return &aKeys; } diff --git a/vcl/source/font/fontcharmap.cxx b/vcl/source/font/fontcharmap.cxx index f30c4e670242..b1a6fef9d4ff 100644 --- a/vcl/source/font/fontcharmap.cxx +++ b/vcl/source/font/fontcharmap.cxx @@ -64,11 +64,11 @@ ImplFontCharMap::ImplFontCharMap( const CmapResult& rCR ) ImplFontCharMapRef const & ImplFontCharMap::getDefaultMap( bool bSymbols ) { const sal_UCS4* pRangeCodes = aDefaultUnicodeRanges; - int nCodesCount = sizeof(aDefaultUnicodeRanges) / sizeof(*pRangeCodes); + int nCodesCount = SAL_N_ELEMENTS(aDefaultUnicodeRanges); if( bSymbols ) { pRangeCodes = aDefaultSymbolRanges; - nCodesCount = sizeof(aDefaultSymbolRanges) / sizeof(*pRangeCodes); + nCodesCount = SAL_N_ELEMENTS(aDefaultSymbolRanges); } CmapResult aDefaultCR( bSymbols, pRangeCodes, nCodesCount/2 ); diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx index f7d3cdd3d8ca..f01bf6446305 100644 --- a/vcl/source/fontsubset/cff.cxx +++ b/vcl/source/fontsubset/cff.cxx @@ -1501,7 +1501,7 @@ bool CffSubsetterContext::initialCffRead() const char* CffSubsetterContext::getString( int nStringID) { // get a standard string if possible - const static int nStdStrings = sizeof(pStringIds)/sizeof(*pStringIds); + const static int nStdStrings = SAL_N_ELEMENTS(pStringIds); if( (nStringID >= 0) && (nStringID < nStdStrings)) return pStringIds[ nStringID]; diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index f588853feb3c..f8438335062b 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -420,7 +420,7 @@ void OutputDevice::ImplGetEmphasisMark( tools::PolyPolygon& rPolyPoly, bool& rPo } else { - tools::Polygon aPoly( sizeof( aAccentPos ) / sizeof( long ) / 2, + tools::Polygon aPoly( SAL_N_ELEMENTS( aAccentPos ) / 2, reinterpret_cast<const Point*>(aAccentPos), aAccentPolyFlags ); double dScale = ((double)nDotSize)/1000.0; |