aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-04-21 13:50:25 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-04-21 13:50:25 +0200
commit06d7a466565cf939aab68c942a84254bcb3453fa (patch)
tree4c1096170beba81e7d367704c37f76882261445a
parentAdd Boost_INCLUDE_DIRS to configuration (diff)
downloadsmolbote-06d7a466565cf939aab68c942a84254bcb3453fa.tar.xz
Remove unneeded po::store
-rw-r--r--lib/about/aboutdialog.cpp2
-rw-r--r--lib/configuration/configuration.cpp6
2 files changed, 1 insertions, 7 deletions
diff --git a/lib/about/aboutdialog.cpp b/lib/about/aboutdialog.cpp
index 2b382c6..df87ad2 100644
--- a/lib/about/aboutdialog.cpp
+++ b/lib/about/aboutdialog.cpp
@@ -18,7 +18,7 @@
#elif defined(__GNUC__)
#define compiler "GCC " __VERSION__
#elif defined(_MSC_VER)
-#define compiler "MSVC " _MSC_VER
+#define compiler "MSVC"
#else
#define compiler "unknown compiler"
#endif
diff --git a/lib/configuration/configuration.cpp b/lib/configuration/configuration.cpp
index edca0d8..d3a8b23 100644
--- a/lib/configuration/configuration.cpp
+++ b/lib/configuration/configuration.cpp
@@ -81,12 +81,6 @@ Configuration::Configuration()
("downloads.path", po::value<std::string>()->default_value("~/Downloads"))
("downloads.shortcut", po::value<std::string>()->default_value("Ctrl+D"))
;
-
- // store the defaults into the vm
- {
- const char *argv[0];
- po::store(po::parse_command_line(0, argv, desc), vm);
- }
}
Configuration::~Configuration() = default;