diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-12-03 13:59:47 +0000 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2010-12-03 13:59:47 +0000 |
commit | 39fc2df3c1d8e8bc8b689e2d21c193bc4886bf8c (patch) | |
tree | c663b430fd156eab527bbc3efa3def2b85b8ede2 /setup_native | |
parent | 0bdef7cec695042a2259c327fc4ea84c74babd0f (diff) |
more Sal n elements
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/source/ulfconv/ulfconv.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setup_native/source/ulfconv/ulfconv.cxx b/setup_native/source/ulfconv/ulfconv.cxx index bdcc98595f5c..1643b330d776 100644 --- a/setup_native/source/ulfconv/ulfconv.cxx +++ b/setup_native/source/ulfconv/ulfconv.cxx @@ -34,6 +34,7 @@ #include <unistd.h> #include <ctype.h> #include <sal/alloca.h> +#include <sal/macros.h> #include <rtl/ustring.hxx> @@ -189,7 +190,7 @@ void read_encoding_table(char * file, EncodingMap& aEncodingMap) *cp = '\0'; // find the correct mapping for codepage - const unsigned int members = sizeof( _ms_encoding_list ) / sizeof( _pair ); + const unsigned int members = SAL_N_ELEMENTS( _ms_encoding_list ); const _pair *encoding = _pair_search( codepage, _ms_encoding_list, members ); if ( encoding != NULL ) { |