summaryrefslogtreecommitdiff
path: root/padmin
diff options
context:
space:
mode:
authorKenneth Venken <kenneth.venken@gmail.com>2010-10-18 12:28:33 +0200
committerDavid Tardon <dtardon@redhat.com>2010-10-18 12:28:33 +0200
commitbbe30ed8144fbfee7500b98a67224731c581663e (patch)
tree69c3c4238eb51d2be523c9eb9e1e2a498c36b9cf /padmin
parent309b89b93489c785a7ed2460ad5064ff0422dfd3 (diff)
replace sizeof(foo)/sizeof(foo[0]) by SAL_N_ELEMENTS
Diffstat (limited to 'padmin')
-rw-r--r--padmin/source/padialog.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/padmin/source/padialog.cxx b/padmin/source/padialog.cxx
index eee80cd441ec..4eb51b4b0b45 100644
--- a/padmin/source/padialog.cxx
+++ b/padmin/source/padialog.cxx
@@ -54,6 +54,7 @@
#include "osl/file.hxx"
#include "rtl/ustrbuf.hxx"
+#include <sal/macros.h>
#include "unotools/localedatawrapper.hxx"
#include "unotools/configitem.hxx"
@@ -455,7 +456,7 @@ void SpaPrinterController::printPage( int ) const
{ NULL, RID_TXT_TESTPAGE_TIME }
};
- for( unsigned int i = 0; i < sizeof(aResIds)/sizeof(aResIds[0]); i++ )
+ for( unsigned int i = 0; i < SAL_N_ELEMENTS(aResIds); i++ )
{
if( aResIds[i].pDirect )
aToken = String::CreateFromAscii( aResIds[i].pDirect );