From e829c9afbf75e930db6c3fe77a269b0af5e7a3ad Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Fri, 20 Nov 2020 00:14:32 +0100 Subject: refactor: replace sizeof(a)/sizeof(a[0]) by std::size (C++17) Removes the macro ARRAYLEN and also substitutes all other uses of the same "sizeof(a)/sizeof(a[0])" pattern by std::size, available since C++17. --- src/util/strencodings.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/util') diff --git a/src/util/strencodings.h b/src/util/strencodings.h index b4a61202ef..98379e9138 100644 --- a/src/util/strencodings.h +++ b/src/util/strencodings.h @@ -17,8 +17,6 @@ #include #include -#define ARRAYLEN(array) (sizeof(array)/sizeof((array)[0])) - /** Used by SanitizeString() */ enum SafeChars { -- cgit v1.2.3