summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKenneth Venken <kenneth.venken@gmail.com>2010-10-18 12:30:17 +0200
committerDavid Tardon <dtardon@redhat.com>2010-10-18 12:30:17 +0200
commite2b287c6e5d948616b3dbd3a0366cda62ba3f1ca (patch)
treec188447aab9d2bd16ad56d9a604c2e192db064bf /test
parent5386970b250b6760a36677f07f4ca8dc33c12d23 (diff)
replace sizeof(foo)/sizeof(foo[0]) by SAL_N_ELEMENTS
Diffstat (limited to 'test')
-rw-r--r--test/source/cpp/officeconnection.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/source/cpp/officeconnection.cxx b/test/source/cpp/officeconnection.cxx
index d8198a004a92..fd71df69fef0 100644
--- a/test/source/cpp/officeconnection.cxx
+++ b/test/source/cpp/officeconnection.cxx
@@ -40,6 +40,7 @@
#include "osl/process.h"
#include "osl/time.h"
#include "sal/types.h"
+#include <sal/macros.h>
#include "test/getargument.hxx"
#include "test/officeconnection.hxx"
#include "test/toabsolutefileurl.hxx"
@@ -109,7 +110,7 @@ void OfficeConnection::setUp() {
osl_executeProcess(
toAbsoluteFileUrl(
argSoffice.copy(RTL_CONSTASCII_LENGTH("path:"))).pData,
- args, sizeof args / sizeof args[0], 0, 0, 0, envs,
+ args, SAL_N_ELEMENTS( args ), 0, 0, 0, envs,
envs == 0 ? 0 : 1, &process_));
} else if (argSoffice.matchAsciiL(RTL_CONSTASCII_STRINGPARAM("connect:"))) {
desc = argSoffice.copy(RTL_CONSTASCII_LENGTH("connect:"));