[Libreoffice-commits] .: reportdesign/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Oct 21 01:14:00 PDT 2010


 reportdesign/source/ui/inspection/metadata.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 72cc77c8bbbdd3a8b3b00ad6f24f26c6abb5c285
Author: Sean McMurray <smcmurray at mcmurrays.org>
Date:   Thu Oct 21 09:13:50 2010 +0100

    Use SAL_N_ELEMENTS

diff --git a/reportdesign/source/ui/inspection/metadata.cxx b/reportdesign/source/ui/inspection/metadata.cxx
index db219c8..e3610c4 100644
--- a/reportdesign/source/ui/inspection/metadata.cxx
+++ b/reportdesign/source/ui/inspection/metadata.cxx
@@ -173,9 +173,8 @@ namespace rptui
         };
 
         s_pPropertyInfos = aPropertyInfos;
-        s_nCount = sizeof(aPropertyInfos) / sizeof(OPropertyInfoImpl);
 
-        ::std::sort( aPropertyInfos, aPropertyInfos + s_nCount, PropertyInfoLessByName() );
+        ::std::sort( aPropertyInfos, aPropertyInfos + SAL_N_ELEMENTS(aPropertyInfos), PropertyInfoLessByName() );
 
         return s_pPropertyInfos;
     }


More information about the Libreoffice-commits mailing list