diff options
author | Sean McMurray <smcmurray@mcmurrays.org> | 2010-10-21 09:13:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-21 09:13:50 +0100 |
commit | 72cc77c8bbbdd3a8b3b00ad6f24f26c6abb5c285 (patch) | |
tree | 2a8911b212aeb1c93d80b6ed9c86084d43bdf5c9 | |
parent | 1b46c80f2d736362a5918951e264aca59b99e5b5 (diff) |
Use SAL_N_ELEMENTS
-rw-r--r-- | reportdesign/source/ui/inspection/metadata.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/reportdesign/source/ui/inspection/metadata.cxx b/reportdesign/source/ui/inspection/metadata.cxx index db219c843..e3610c46c 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; } |