From dca05ecc73f6ff8801e718fb4f957de5e821f201 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 23 Nov 2012 18:48:04 +0100 Subject: small code tweak --- src/string.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/string.hh') diff --git a/src/string.hh b/src/string.hh index e735444e..ef30195d 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) : m_content(std::string() + content) {} + explicit String(char content, size_t count = 1) : m_content(count, content) {} template String(Iterator begin, Iterator end) : m_content(begin, end) {} -- cgit v1.2.3