diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-03 13:10:49 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-08-03 13:10:49 +0200 |
commit | cde6c46d2fff083166c3aca7fbf07df737c07cdc (patch) | |
tree | 51c5706d03b6ea61fa6dad6566dfa67bc090efda /src/CommandLine.cxx | |
parent | d305f187d5268a040aca6df62849c33b05308963 (diff) |
util/Macros: replace with std::size() (C++17)
Diffstat (limited to 'src/CommandLine.cxx')
-rw-r--r-- | src/CommandLine.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/CommandLine.cxx b/src/CommandLine.cxx index ac53cf53a..770cc3bc7 100644 --- a/src/CommandLine.cxx +++ b/src/CommandLine.cxx @@ -36,7 +36,6 @@ #include "fs/Traits.hxx" #include "fs/FileSystem.hxx" #include "fs/StandardDirectory.hxx" -#include "util/Macros.hxx" #include "util/Domain.hxx" #include "util/OptionDef.hxx" #include "util/OptionParser.hxx" @@ -385,7 +384,7 @@ ParseCommandLine(int argc, char **argv, struct options &options, #ifdef _UNICODE wchar_t buffer[MAX_PATH]; auto result = MultiByteToWideChar(CP_ACP, 0, config_file, -1, - buffer, ARRAY_SIZE(buffer)); + buffer, std::size(buffer)); if (result <= 0) throw MakeLastError("MultiByteToWideChar() failed"); |