summaryrefslogtreecommitdiff
path: root/include/tgbot/tools
diff options
context:
space:
mode:
authorAlexander Zaitsev <zamazan4ik@tut.by>2020-03-13 03:56:35 +0300
committerAlexander Zaitsev <zamazan4ik@tut.by>2020-03-13 03:56:35 +0300
commit26fac5bf7e87dd5704a967ee4c744228b93d20b7 (patch)
tree74e5daa9a58f3a97b417925a212ac2cd31487a5e /include/tgbot/tools
parent806e7e5a3edf4fdf2b9c48469a7bc23307b200b0 (diff)
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
Diffstat (limited to 'include/tgbot/tools')
-rw-r--r--include/tgbot/tools/StringTools.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tgbot/tools/StringTools.h b/include/tgbot/tools/StringTools.h
index d1bc094..cb26bb5 100644
--- a/include/tgbot/tools/StringTools.h
+++ b/include/tgbot/tools/StringTools.h
@@ -1,6 +1,7 @@
#ifndef TGBOT_CPP_STRINGTOOLS_H
#define TGBOT_CPP_STRINGTOOLS_H
+#include <cstddef>
#include <vector>
#include <string>
#include <sstream>
@@ -36,7 +37,7 @@ void split(const std::string& str, char delimiter, std::vector<std::string>& des
* Generates pseudo random string. It's recommended to call srand before this method.
* @param length Length of resulting string.
*/
-std::string generateRandomString(size_t length);
+std::string generateRandomString(std::size_t length);
/**
* Performs url encode.