From 0250d43bbe8b46e021aeca2c6caae20745ed2513 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Thu, 7 Feb 2019 14:07:37 +0100 Subject: [PATCH] Make ArgParse::parseArgs's signature follow main's --- lib/cpp_utils/ArgParse.cpp | 4 ++-- lib/cpp_utils/ArgParse.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cpp_utils/ArgParse.cpp b/lib/cpp_utils/ArgParse.cpp index c6cb325..e5492c3 100644 --- a/lib/cpp_utils/ArgParse.cpp +++ b/lib/cpp_utils/ArgParse.cpp @@ -72,7 +72,7 @@ void ArgParse::addArgument(const std::string arg, void ArgParse::parseArgs(int argc, - const char* argv[]) + char* argv[]) { std::list argList; for (int i = 0; i < argc; ++i ) @@ -519,4 +519,4 @@ ArgParse::typeToString(const ValueType type, std::string valueName) const default: return ""; } -} \ No newline at end of file +} diff --git a/lib/cpp_utils/ArgParse.hpp b/lib/cpp_utils/ArgParse.hpp index 39aaae9..d9df2fc 100644 --- a/lib/cpp_utils/ArgParse.hpp +++ b/lib/cpp_utils/ArgParse.hpp @@ -71,7 +71,7 @@ public: * @throw std::logic_error If the addArgument was bad. */ void parseArgs(int argc, - const char* argv[]); + char* argv[]); void parseArgs(const std::list argList);