From 522faf9ccb25254e3c765425c74aee5c2aa6c950 Mon Sep 17 00:00:00 2001 From: Kenneth Venken Date: Mon, 18 Oct 2010 19:47:47 +0100 Subject: cleanup to use SAL_N_ELEMENTS --- sal/textenc/textenc.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sal/textenc') 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 #ifndef INCLUDED_STDDEF_H #include @@ -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: */ -- cgit