some patches that replace sizeof(a)/sizeof(a[0]) with SAL_N_ELEMENTS(a)
This commit is contained in:
parent
c8d71428b3
commit
35a5521b07
1 changed files with 2 additions and 1 deletions
|
@ -41,6 +41,7 @@
|
|||
#include <i18npool/paper.hxx>
|
||||
#include <editeng/paperinf.hxx>
|
||||
#include <ooo/vba/excel/XlPaperSize.hpp>
|
||||
#include <sal/macros.h>
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
using namespace ::ooo::vba;
|
||||
|
@ -665,7 +666,7 @@ static PaperSizeMap paperSizeMappings[] =
|
|||
{ PAPER_ENV_12, ooo::vba::excel::XlPaperSize::xlPaperEnvelope12 }
|
||||
};
|
||||
|
||||
static const int nMapSize = sizeof(paperSizeMappings) / sizeof(paperSizeMappings[0]);
|
||||
static const int nMapSize = SAL_N_ELEMENTS(paperSizeMappings);
|
||||
|
||||
sal_Int32 PaperSizeOOoToExcel(Paper ePaper)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue