diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-01-10 16:00:18 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-01-10 16:52:33 +0100 |
commit | 2c3d0ff9f83aab89980529da2aa3837390b84ef7 (patch) | |
tree | a7ff1a3e2271c219b29c4ab3a4e54411c22ed20c /vcl/ios/source | |
parent | a2dd79d14ee2e76e3b6c13f2880706292ea90c26 (diff) |
Use SAL_N_ELEMENTS
Some more like Thorstens diff 9c59cd15b150638c845bbc275b9b04460afc23bd
Done with some regex magic (and a check if this var is an array):
s/sizeof\(\s*$var\s*\)\s*\/\s*sizeof\(\s*\*$var\s*/SAL_N_ELEMENTS\($var/gs
Diffstat (limited to 'vcl/ios/source')
-rw-r--r-- | vcl/ios/source/gdi/salgdi.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/ios/source/gdi/salgdi.cxx b/vcl/ios/source/gdi/salgdi.cxx index 76a51eee94d6..f6ffbaa84b2f 100644 --- a/vcl/ios/source/gdi/salgdi.cxx +++ b/vcl/ios/source/gdi/salgdi.cxx @@ -1677,7 +1677,7 @@ sal_uInt16 IosSalGraphics::SetFont( FontSelectPattern* pReqFont, int /*nFallback &aVerticalCharacterType }; - static const int nTagCount = sizeof(aTag) / sizeof(*aTag); + static const int nTagCount = SAL_N_ELEMENTS(aTag); OSStatus eStatus = ATSUSetAttributes( maATSUStyle, nTagCount, aTag, aValueSize, aValue ); // reset ATSUstyle if there was an error |