summaryrefslogtreecommitdiff
path: root/src/net/Url.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/Url.cpp')
-rw-r--r--src/net/Url.cpp4
1 files changed, 3 insertions, 1 deletions
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 <cstddef>
+
#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) {