Remove unused parameter in ArgumentParser::verifyArgs()

improve/error-messages
Martchus 5 years ago
parent 007235973a
commit 6249db3b09
  1. 8
      application/argumentparser.cpp
  2. 2
      application/argumentparser.h

@ -949,11 +949,9 @@ bool ArgumentParser::isUncombinableMainArgPresent() const
*
* \remarks
* - Verifies the sub arguments, too.
* - For debugging purposes only; hence only available in debug builds.
*
* \todo Remove unused parameter \a abbreviations and \a names in next major release.
* - For debugging purposes only; hence only used in debug builds.
*/
void ApplicationUtilities::ArgumentParser::verifyArgs(const ArgumentVector &args, vector<char>, vector<const char *>)
void ApplicationUtilities::ArgumentParser::verifyArgs(const ArgumentVector &args)
{
vector<const Argument *> verifiedArgs;
verifiedArgs.reserve(args.size());
@ -974,7 +972,7 @@ void ApplicationUtilities::ArgumentParser::verifyArgs(const ArgumentVector &args
names.emplace_back(arg->name());
}
for (const Argument *arg : args) {
verifyArgs(arg->subArguments(), vector<char>(), vector<const char *>());
verifyArgs(arg->subArguments());
}
}
#endif

@ -299,7 +299,7 @@ public:
bool isUncombinableMainArgPresent() const;
private:
IF_DEBUG_BUILD(void verifyArgs(const ArgumentVector &args, std::vector<char> abbreviations, std::vector<const char *> names);)
IF_DEBUG_BUILD(void verifyArgs(const ArgumentVector &args);)
void printBashCompletion(int argc, const char *const *argv, unsigned int cursorPos, const ArgumentReader &reader);
void checkConstraints(const ArgumentVector &args);
static void invokeCallbacks(const ArgumentVector &args);

Loading…
Cancel
Save