diff options
author | Egor Pugin <egor.pugin@gmail.com> | 2020-03-13 13:45:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 13:45:37 +0300 |
commit | dee88d3099607d6fa49e2775aaa8a6cb2d77d710 (patch) | |
tree | 74e5daa9a58f3a97b417925a212ac2cd31487a5e /include/tgbot/tools/StringTools.h | |
parent | d1c6a8062577f5ce58105afff2d0a1887bfff957 (diff) | |
parent | 26fac5bf7e87dd5704a967ee4c744228b93d20b7 (diff) |
Merge pull request #129 from reo7sp/fix/use_proper_types
fix: use C++ fixed-width types instead of C types
Diffstat (limited to 'include/tgbot/tools/StringTools.h')
-rw-r--r-- | include/tgbot/tools/StringTools.h | 3 |
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. |