[Libreoffice] [Patch] SAL_N_ELEMENTS Easy Hack
Sean McMurray <libreoffice@lists.freedesktop.org>
smcmurray at mcmurrays.org
Wed Oct 20 09:34:05 PDT 2010
From dff6ef1a53dd5f76ce9f33819106e860dd63a3e2 Mon Sep 17 00:00:00 2001
Date: Tue, 19 Oct 2010 16:10:36 -0700
Subject: [PATCH] Easy Hack for SAL_N_ELEMENTS
This patch is public domain.
---
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 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;
}
--
1.6.2.5
More information about the LibreOffice
mailing list