fix bug in useless string buffer (use += on std::string, faster)
parent
f15a89328f
commit
fc8aa8204a
|
@ -36,7 +36,7 @@ namespace blt::string {
|
||||||
StringBuffer& operator<<(char c);
|
StringBuffer& operator<<(char c);
|
||||||
StringBuffer& operator<<(const std::string& str) {
|
StringBuffer& operator<<(const std::string& str) {
|
||||||
for (char c : str)
|
for (char c : str)
|
||||||
*this << str;
|
*this << c;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue