From 1e5e37a9d1af571e962671db95b23c7cc7ddce6d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 16 May 2021 18:38:30 +0300 Subject: remove VS 2013 cruft --- src/cmd_line.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/cmd_line.cpp') 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 #include -#include // clang-format off #include @@ -87,11 +86,11 @@ CommandLine CommandLine::from_main(int argc, wchar_t* argv[]) { return CommandLine{narrow_all(argc, argv)}; } -CommandLine::CommandLine(const std::vector& argv) : m_args(argv) { +CommandLine::CommandLine(const std::vector& argv) : m_args{argv} { m_argv0 = split_argv0(m_args); } -CommandLine::CommandLine(std::vector&& argv) : m_args(std::move(argv)) { +CommandLine::CommandLine(std::vector&& 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); -- cgit v1.2.3