summaryrefslogtreecommitdiff
path: root/l10ntools/source
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 /l10ntools/source
parent309b89b93489c785a7ed2460ad5064ff0422dfd3 (diff)
replace sizeof(foo)/sizeof(foo[0]) by SAL_N_ELEMENTS
Diffstat (limited to 'l10ntools/source')
-rw-r--r--l10ntools/source/export2.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/l10ntools/source/export2.cxx b/l10ntools/source/export2.cxx
index 17b3250cf1a8..6369b947bff2 100644
--- a/l10ntools/source/export2.cxx
+++ b/l10ntools/source/export2.cxx
@@ -36,6 +36,7 @@
#include <osl/time.h>
#include <osl/process.h>
#include <rtl/ustring.hxx>
+#include <sal/macros.h>
#include <iostream>
#include <iomanip>
#include <tools/urlobj.hxx>
@@ -666,7 +667,7 @@ void Export::getCurrentDir( string& dir )
void Export::getRandomName( const ByteString& sPrefix , ByteString& sRandStr , const ByteString& sPostfix )
{
static const char LETTERS[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
- static const int COUNT_OF_LETTERS = sizeof(LETTERS)/sizeof(LETTERS[0]) - 1;
+ static const int COUNT_OF_LETTERS = SAL_N_ELEMENTS(LETTERS) - 1;
sRandStr.Append( sPrefix );
static sal_uInt64 value;