aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/cmd_line.cpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-16 18:38:30 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-16 18:44:21 +0300
commit1e5e37a9d1af571e962671db95b23c7cc7ddce6d (patch)
treee4b9900e7f4c1973fa4670f5d43a140bc551098a /src/cmd_line.cpp
parentupdate cmake-common (diff)
downloadwinapi-common-1e5e37a9d1af571e962671db95b23c7cc7ddce6d.tar.gz
winapi-common-1e5e37a9d1af571e962671db95b23c7cc7ddce6d.zip
remove VS 2013 cruft
Diffstat (limited to 'src/cmd_line.cpp')
-rw-r--r--src/cmd_line.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd_line.cpp b/src/cmd_line.cpp
index d2eeab5..3fc0a7e 100644
--- a/src/cmd_line.cpp
+++ b/src/cmd_line.cpp
@@ -9,7 +9,6 @@
#include <winapi/utils.hpp>
#include <boost/algorithm/string.hpp>
-#include <boost/config.hpp>
// clang-format off
#include <windows.h>
@@ -87,11 +86,11 @@ CommandLine CommandLine::from_main(int argc, wchar_t* argv[]) {
return CommandLine{narrow_all(argc, argv)};
}
-CommandLine::CommandLine(const std::vector<std::string>& argv) : m_args(argv) {
+CommandLine::CommandLine(const std::vector<std::string>& argv) : m_args{argv} {
m_argv0 = split_argv0(m_args);
}
-CommandLine::CommandLine(std::vector<std::string>&& argv) : m_args(std::move(argv)) {
+CommandLine::CommandLine(std::vector<std::string>&& argv) : m_args{std::move(argv)} {
m_argv0 = split_argv0(m_args);
}
@@ -128,7 +127,7 @@ std::string CommandLine::escape(const std::string& arg) {
}
std::string CommandLine::escape_cmd(const std::string& arg) {
- BOOST_STATIC_CONSTEXPR auto escape_symbol = '^';
+ static constexpr auto escape_symbol = '^';
static const std::string dangerous_symbols{"^!\"%&()<>|"};
auto safe = escape(arg);