From 3d3d391aed616abf8754621c8246a500dddef788 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 4 May 2021 15:16:14 +0300 Subject: get rid of SafeInt --- src/cmd_line.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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 #include -#include - #include #include @@ -102,7 +100,7 @@ std::string CommandLine::escape(const std::string& arg) { safe << '"'; for (auto it = arg.cbegin(); it != arg.cend(); ++it) { - SafeInt numof_backslashes{0}; + std::size_t numof_backslashes = 0; for (; it != arg.cend() && *it == '\\'; ++it) ++numof_backslashes; -- cgit v1.2.3