summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-11-23 18:48:04 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-11-23 18:48:04 +0100
commitdca05ecc73f6ff8801e718fb4f957de5e821f201 (patch)
treed9e0a04e5a6f778a7548ff475ee8e8d997cc3e3b /src/string.hh
parent9c99c238e8994376049bdafc41e6460d8ffad278 (diff)
small code tweak
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh2
1 files changed, 1 insertions, 1 deletions
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<typename Iterator>
String(Iterator begin, Iterator end) : m_content(begin, end) {}