diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-10-18 12:28:33 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-10-18 12:28:33 +0200 |
commit | bbe30ed8144fbfee7500b98a67224731c581663e (patch) | |
tree | 69c3c4238eb51d2be523c9eb9e1e2a498c36b9cf /padmin | |
parent | reduce large realloc / realloc thrash for image reading. (diff) | |
download | core-bbe30ed8144fbfee7500b98a67224731c581663e.tar.gz core-bbe30ed8144fbfee7500b98a67224731c581663e.zip |
replace sizeof(foo)/sizeof(foo[0]) by SAL_N_ELEMENTS
Diffstat (limited to 'padmin')
-rw-r--r-- | padmin/source/padialog.cxx | 3 |
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 ); |