[Libreoffice-commits] .: filter/source
David Tardon
dtardon at kemper.freedesktop.org
Sun Nov 21 22:56:01 PST 2010
filter/source/msfilter/msocximex.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 4eb76e581e7c270a8ac32bccd8ca2399538e925a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Mon Nov 22 07:55:50 2010 +0100
sizeof(foo)/sizeof(foo[0]) -> SAL_N_ELEMENTS
diff --git a/filter/source/msfilter/msocximex.cxx b/filter/source/msfilter/msocximex.cxx
index d78dc81..308bc44 100644
--- a/filter/source/msfilter/msocximex.cxx
+++ b/filter/source/msfilter/msocximex.cxx
@@ -78,6 +78,7 @@
#include <com/sun/star/io/XInputStream.hpp>
#include <comphelper/componentcontext.hxx>
#include <unotools/streamwrap.hxx>
+#include <sal/macros.h>
#include <com/sun/star/beans/NamedValue.hpp>
#include <com/sun/star/table/XCellRange.hpp>
@@ -938,7 +939,7 @@ public:
if ( bDefaultProg )
pS->Read( pDefaultProg, sizeof( pDefaultProg ) );
- sal_Int32 nNumIds = sizeof( ClsidList ) / sizeof( ClsidList[0] );
+ sal_Int32 nNumIds = SAL_N_ELEMENTS( ClsidList );
if ( bClsID )
{
More information about the Libreoffice-commits
mailing list