summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/options.cpp')
-rw-r--r--src/lib/util/options.cpp21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/lib/util/options.cpp b/src/lib/util/options.cpp
index 65aac4a8883..fd0783ccaae 100644
--- a/src/lib/util/options.cpp
+++ b/src/lib/util/options.cpp
@@ -15,10 +15,10 @@
#include <locale>
#include <string>
-#include <assert.h>
-#include <ctype.h>
-#include <stdarg.h>
-#include <stdlib.h>
+#include <cassert>
+#include <cctype>
+#include <cstdarg>
+#include <cstdlib>
const int core_options::MAX_UNADORNED_OPTIONS;
@@ -423,15 +423,6 @@ const char *core_options::simple_entry::maximum() const noexcept
//**************************************************************************
//-------------------------------------------------
-// core_options - constructor
-//-------------------------------------------------
-
-core_options::core_options()
-{
-}
-
-
-//-------------------------------------------------
// ~core_options - destructor
//-------------------------------------------------
@@ -520,7 +511,7 @@ void core_options::add_entry(const options_entry &opt, bool override_existing)
{
for (const std::string &name : names)
{
- existing_entry = get_entry(name.c_str());
+ existing_entry = get_entry(name);
if (existing_entry)
break;
}
@@ -657,7 +648,7 @@ void core_options::parse_command_line(const std::vector<std::string> &args, int
// special case - collect unadorned arguments after commands into a special place
if (is_unadorned && !m_command.empty())
{
- m_command_arguments.push_back(std::move(args[arg]));
+ m_command_arguments.push_back(args[arg]);
command_argument_processed();
continue;
}