diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-10-17 00:13:19 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-17 00:13:19 -0500 |
commit | 2f66ff459bebbb8f181bc9e8a4e77685c874ff67 (patch) | |
tree | 6bb8faeb02ae5f1a4858e105d0133d56b4ab6c54 /shell | |
parent | 4ecdedf95c891a7184d2281005fcd5585d6f91d7 (diff) |
use SAL_N_ELEMENTS macro
Diffstat (limited to 'shell')
-rw-r--r-- | shell/source/win32/SysShExec.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx index e89ebfb76b..729812f089 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. */ |