sizeof(foo)/sizeof(foo[0]) -> SAL_N_ELEMENTS

This commit is contained in:
Julien Nabet 2010-11-22 07:55:50 +01:00 committed by David Tardon
parent 3fc2d546c4
commit 0afb1d652f

View file

@ -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 )
{