1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-28 22:22:41 +03:00

String: use a CharCount instead of a size_t in String(char, CharCount)

This commit is contained in:
Maxime Coste 2013-02-25 19:25:32 +01:00
parent 350b7ddf7f
commit dc8803e41b

View File

@ -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<typename Iterator>
String(Iterator begin, Iterator end) : m_content(begin, end) {}