mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
Replace A2_ARRAY_LEN with constexpr arraySize
This commit is contained in:
parent
b8b291187d
commit
ae631513f3
8 changed files with 13 additions and 18 deletions
|
@ -168,7 +168,7 @@ void OptionParserTest::testParseArg()
|
|||
|
||||
char* argv[] = { prog, optionTimeout, argTimeout, optionDir, argDir,
|
||||
nonopt1, nonopt2 };
|
||||
int argc = A2_ARRAY_LEN(argv);
|
||||
int argc = arraySize(argv);
|
||||
|
||||
std::stringstream s;
|
||||
std::vector<std::string> nonopts;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue