summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argparser.cc2
-rw-r--r--src/include/argparser.h7
2 files changed, 1 insertions, 8 deletions
diff --git a/src/argparser.cc b/src/argparser.cc
index 621bc5c..59cdced 100644
--- a/src/argparser.cc
+++ b/src/argparser.cc
@@ -237,7 +237,7 @@ void CommandLineArgs::registerArg(const string &arg,
name = name.substr(2);
}
- reg.insert(make_pair(name, ArgOpts(shorts, boolean, optional, desc)));
+ reg.insert(make_pair(name, ArgOpts{shorts, boolean, optional, desc}));
}
bool CommandLineArgs::hasArg(const string &arg) const
diff --git a/src/include/argparser.h b/src/include/argparser.h
index 7aedf17..8cbced0 100644
--- a/src/include/argparser.h
+++ b/src/include/argparser.h
@@ -19,13 +19,6 @@ namespace Binc {
bool b;
bool o;
std::string desc;
-
- ArgOpts(const std::string &chr, bool boolean, bool optional, const std::string &descr)
- : c(chr)
- , b(boolean)
- , o(optional)
- , desc(descr)
- {}
};
class CommandLineArgs {