[Libreoffice-commits] .: test/source
David Tardon
dtardon at kemper.freedesktop.org
Mon Oct 18 03:30:51 PDT 2010
test/source/cpp/officeconnection.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit db5dc205693ed0a0b0bc7103525d5755bae916a5
Author: Kenneth Venken <kenneth.venken at gmail.com>
Date: Mon Oct 18 12:30:17 2010 +0200
replace sizeof(foo)/sizeof(foo[0]) by SAL_N_ELEMENTS
diff --git a/test/source/cpp/officeconnection.cxx b/test/source/cpp/officeconnection.cxx
index d8198a0..fd71df6 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:"));
More information about the Libreoffice-commits
mailing list