summaryrefslogtreecommitdiff
path: root/dtrans/source/win32
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-03-08 11:43:27 +0100
committerDavid Tardon <dtardon@redhat.com>2012-03-12 08:53:34 +0100
commit7553b372efef9d73db8b3a48db1dce3e292962f3 (patch)
tree2d50be1839ee227903f51237927e7e197438dd62 /dtrans/source/win32
parent0441206f22ee4abb6ee762099d4658bce97a9706 (diff)
use SAL_N_ELEMENTS
Diffstat (limited to 'dtrans/source/win32')
-rw-r--r--dtrans/source/win32/misc/ImplHelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dtrans/source/win32/misc/ImplHelper.cxx b/dtrans/source/win32/misc/ImplHelper.cxx
index 7d7b22faed67..9061e8099190 100644
--- a/dtrans/source/win32/misc/ImplHelper.cxx
+++ b/dtrans/source/win32/misc/ImplHelper.cxx
@@ -183,7 +183,7 @@ sal_Bool SAL_CALL IsOEMCP( sal_uInt32 codepage )
861, 862, 863, 864, 865, 866,
869, 874, 932, 936, 949, 950, 1361 };
- for ( sal_Int8 i = 0; i < ( sizeof( arrOEMCP )/sizeof( sal_uInt32 ) ); ++i )
+ for ( sal_Int8 i = 0; i < ( SAL_N_ELEMENTS( arrOEMCP ) ); ++i )
if ( (sal_uInt32) arrOEMCP[i] == codepage )
return sal_True;