From dc8803e41b01076356ba5c1c46adb249d166b797 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 25 Feb 2013 19:25:32 +0100 Subject: [PATCH] String: use a CharCount instead of a size_t in String(char, CharCount) --- src/string.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.hh b/src/string.hh index 773a6cbc7..f86e06616 100644 --- a/src/string.hh +++ b/src/string.hh @@ -23,7 +23,7 @@ public: String(std::string content) : m_content(std::move(content)) {} String(const String& string) = default; String(String&& string) = default; - explicit String(char content, size_t count = 1) : m_content(count, content) {} + explicit String(char content, CharCount count = 1) : m_content((size_t)(int)count, content) {} template String(Iterator begin, Iterator end) : m_content(begin, end) {}