diff options
author | Kenneth Venken <kenneth.venken@gmail.com> | 2010-10-18 19:47:47 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-10-18 19:47:47 +0100 |
commit | 522faf9ccb25254e3c765425c74aee5c2aa6c950 (patch) | |
tree | fb4edb37fb880b3a8394d4b4d926a237a5c8908e /sal/osl/w32/profile.cxx | |
parent | c189268e0ab3ec33c02c5dbabfd31b37e0b1f5ab (diff) |
cleanup to use SAL_N_ELEMENTS
Diffstat (limited to 'sal/osl/w32/profile.cxx')
-rw-r--r-- | sal/osl/w32/profile.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx index fe536001a0f6..b2f10a330320 100644 --- a/sal/osl/w32/profile.cxx +++ b/sal/osl/w32/profile.cxx @@ -37,6 +37,7 @@ #include <osl/file.h> #include <osl/util.h> #include <rtl/alloc.h> +#include <sal/macros.h> #include <algorithm> using std::min; static inline void copy_ustr_n( void *dest, const void *source, size_t length ) { rtl_copyMemory(dest, source, length*sizeof(sal_Unicode)); } @@ -2556,7 +2557,7 @@ static sal_Bool lookupProfile(const sal_Unicode *strPath, const sal_Unicode *str int i = 0; pStr = aTmpPath + nPos; - for (i = 0; i < (sizeof(SubDirs) / sizeof(SubDirs[0])); i++) + for (i = 0; i < SAL_N_ELEMENTS(SubDirs); i++) if (strnicmp(pStr + 1, SubDirs[i], strlen(SubDirs[i])) == 0) { if ( *strPath == 0) |