diff options
Diffstat (limited to 'sal/textenc/textenc.cxx')
-rw-r--r-- | sal/textenc/textenc.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sal/textenc/textenc.cxx b/sal/textenc/textenc.cxx index 00a46e509f02..ab98b4bfa625 100644 --- a/sal/textenc/textenc.cxx +++ b/sal/textenc/textenc.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -34,6 +35,7 @@ #include "gettextencodingdata.h" #include "tenchelp.h" #include "rtl/textenc.h" +#include <sal/macros.h> #ifndef INCLUDED_STDDEF_H #include <stddef.h> @@ -222,5 +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: */ |