summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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:"));