aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-04 15:16:14 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-04 15:16:21 +0300
commit3d3d391aed616abf8754621c8246a500dddef788 (patch)
tree678a54fbf7c530fc79dadebbc2c03e694d0ad746 /src
parentupdate winapi-utf8 (diff)
downloadwinapi-common-3d3d391aed616abf8754621c8246a500dddef788.tar.gz
winapi-common-3d3d391aed616abf8754621c8246a500dddef788.zip
get rid of SafeInt
Diffstat (limited to 'src')
-rw-r--r--src/cmd_line.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd_line.cpp b/src/cmd_line.cpp
index 238e0bc..d2eeab5 100644
--- a/src/cmd_line.cpp
+++ b/src/cmd_line.cpp
@@ -8,8 +8,6 @@
#include <winapi/utf8.hpp>
#include <winapi/utils.hpp>
-#include <SafeInt.hpp>
-
#include <boost/algorithm/string.hpp>
#include <boost/config.hpp>
@@ -102,7 +100,7 @@ std::string CommandLine::escape(const std::string& arg) {
safe << '"';
for (auto it = arg.cbegin(); it != arg.cend(); ++it) {
- SafeInt<std::size_t> numof_backslashes{0};
+ std::size_t numof_backslashes = 0;
for (; it != arg.cend() && *it == '\\'; ++it)
++numof_backslashes;