diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-10-18 19:47:47 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-18 19:47:47 +0100 |
commit | 522faf9ccb25254e3c765425c74aee5c2aa6c950 (patch) | |
tree | fb4edb37fb880b3a8394d4b4d926a237a5c8908e /sal/textenc | |
parent | c189268e0ab3ec33c02c5dbabfd31b37e0b1f5ab (diff) |
cleanup to use SAL_N_ELEMENTS
Diffstat (limited to 'sal/textenc')
-rw-r--r-- | sal/textenc/textenc.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/textenc/textenc.cxx b/sal/textenc/textenc.cxx index 6db6ba0cbd04..ab98b4bfa625 100644 --- a/sal/textenc/textenc.cxx +++ b/sal/textenc/textenc.cxx @@ -35,6 +35,7 @@ #include "gettextencodingdata.h" #include "tenchelp.h" #include "rtl/textenc.h" +#include <sal/macros.h> #ifndef INCLUDED_STDDEF_H #include <stddef.h> @@ -223,7 +224,7 @@ Impl_getTextEncodingData(rtl_TextEncoding nEncoding) SAL_THROW_EXTERN_C() &aImplPT154TextEncodingData, /* PT154 */ &adobeDingbatsEncodingData }; /* ADOBE_DINGBATS */ return - nEncoding < sizeof aData / sizeof aData[0] ? aData[nEncoding] : NULL; + nEncoding < SAL_N_ELEMENTS(aData) ? aData[nEncoding] : NULL; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |