From 1aa4df615fa5599d05e9dd5e925b5852676185fa Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 28 Mar 2016 17:12:04 +0200 Subject: use SAL_N_ELEMENTS in for loops for with git grep -n 'for.*sizeof' Change-Id: I6211024385e03ac5eeeb38690d2c1c699e015c2f Reviewed-on: https://gerrit.libreoffice.org/23569 Tested-by: Jenkins Reviewed-by: Noel Grandin --- onlineupdate/source/update/updater/loaddlls.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'onlineupdate') diff --git a/onlineupdate/source/update/updater/loaddlls.cxx b/onlineupdate/source/update/updater/loaddlls.cxx index 94a4222136b5..0ec061de4828 100644 --- a/onlineupdate/source/update/updater/loaddlls.cxx +++ b/onlineupdate/source/update/updater/loaddlls.cxx @@ -90,7 +90,7 @@ struct AutoLoadSystemDependencies } // For each known DLL ensure it is loaded from the system32 directory - for (size_t i = 0; i < sizeof(delayDLLs) / sizeof(delayDLLs[0]); ++i) { + for (size_t i = 0; i < SAL_N_ELEMENTS(delayDLLs); ++i) { size_t fileLen = wcslen(delayDLLs[i]); wcsncpy(systemDirectory + systemDirLen, delayDLLs[i], MAX_PATH - systemDirLen); -- cgit