From 26fac5bf7e87dd5704a967ee4c744228b93d20b7 Mon Sep 17 00:00:00 2001 From: Alexander Zaitsev Date: Fri, 13 Mar 2020 03:56:35 +0300 Subject: fix: use std::size_t instead of size_t - use C++ size_t from std namespace instead of a version from global namespace Tested: - Local build - Unit-tests --- src/net/Url.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net/Url.cpp') diff --git a/src/net/Url.cpp b/src/net/Url.cpp index c767b47..016a97f 100644 --- a/src/net/Url.cpp +++ b/src/net/Url.cpp @@ -1,5 +1,7 @@ #include "tgbot/net/Url.h" +#include + #include "tgbot/tools/StringTools.h" using namespace std; @@ -12,7 +14,7 @@ Url::Url(const string& url) { bool isPathParsed = false; bool isQueryParsed = false; - for (size_t i = 0, count = url.length(); i < count; ++i) { + for (std::size_t i = 0, count = url.length(); i < count; ++i) { char c = url[i]; if (!isProtocolParsed) { -- cgit v1.2.3