[Libreoffice-commits] .: i18npool/source

Michael Meeks michael at kemper.freedesktop.org
Tue Jul 26 10:08:48 PDT 2011


 i18npool/source/isolang/isolang.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ef22f30fe273b01a9d227a4a0e0bfc66ae0bc934
Author: Michael Meeks <michael.meeks at novell.com>
Date:   Tue Jul 26 18:06:48 2011 +0100

    random SAL_N_ELEMENTS cleanup

diff --git a/i18npool/source/isolang/isolang.cxx b/i18npool/source/isolang/isolang.cxx
index 3dac780..dcb0d37 100644
--- a/i18npool/source/isolang/isolang.cxx
+++ b/i18npool/source/isolang/isolang.cxx
@@ -1101,7 +1101,7 @@ LanguageType MsLangId::convertUnxByteStringToLanguage(
 // static
 const MsLangId::IsoLangEntry* MsLangId::getIsoLangEntry( size_t nIndex )
 {
-    if (nIndex < sizeof( aImplIsoLangEntries) / sizeof( IsoLangEntry))
+    if (nIndex < SAL_N_ELEMENTS(aImplIsoLangEntries))
         return &aImplIsoLangEntries[ nIndex];
     return 0;
 }


More information about the Libreoffice-commits mailing list