summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorKenneth Venken <kenneth.venken@gmail.com>2010-10-17 00:13:19 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-10-17 00:13:19 -0500
commita36dcb29132d4f8a0fc740a7714aec34ed53b8ce (patch)
treee00f9936cd53f3375e82816e2eb5d3e349f3eb18 /shell
parent3d361dbc2d69484657c42852dcfa426c00bc3175 (diff)
use SAL_N_ELEMENTS macro
Diffstat (limited to 'shell')
-rw-r--r--shell/source/win32/SysShExec.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx
index ff03802b823c..bf430b2e6497 100644
--- a/shell/source/win32/SysShExec.cxx
+++ b/shell/source/win32/SysShExec.cxx
@@ -35,6 +35,7 @@
#include <osl/diagnose.h>
#include "SysShExec.hxx"
#include <osl/file.hxx>
+#include <sal/macros.h>
#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
@@ -145,7 +146,7 @@ namespace // private
};
/* size of the table */
- #define ERRTABLESIZE (sizeof(errtable)/sizeof(errtable[0]))
+ #define ERRTABLESIZE (SAL_N_ELEMENTS(errtable))
/* The following two constants must be the minimum and maximum
values in the (contiguous) range of osl_File_E_xec Failure errors. */