From 1c0172cca4f1e90679321912e20436a7f42f122d Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Sat, 24 Feb 2018 15:32:06 +0100 Subject: more nullptr --- utils/std_string_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/std_string_utils.h') diff --git a/utils/std_string_utils.h b/utils/std_string_utils.h index 6608d7a0d9..ad130d12b1 100644 --- a/utils/std_string_utils.h +++ b/utils/std_string_utils.h @@ -56,7 +56,7 @@ namespace utils namespace number { - int random(int min, int max, unsigned int *value = NULL); + int random(int min, int max, unsigned int *value = nullptr); }; namespace text @@ -72,7 +72,7 @@ namespace utils std::string source_get_value(std::string* data, unsigned int argument_count, ...); std::string source_get_value2(std::string* data, const char *term, const char *endings, bool wholeString = false); std::string source_get_form_data(std::string* data, bool hiddenOnly = false); - std::string rand_string(int len, const char *chars = "0123456789" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz", unsigned int *number = NULL); + std::string rand_string(int len, const char *chars = "0123456789" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz", unsigned int *number = nullptr); std::string truncate_utf8(const std::string &text, size_t maxLength); void explode(std::string str, const std::string &separator, std::vector* results); void append_ordinal(unsigned long value, std::string* data); -- cgit v1.2.3