simplify string operator+= for T
parent
d9bd0f8380
commit
5189bab1af
|
@ -528,10 +528,7 @@ public:
|
||||||
return append(r);
|
return append(r);
|
||||||
}
|
}
|
||||||
StringBase &operator+=(T c) {
|
StringBase &operator+=(T c) {
|
||||||
reserve(p_len + 1);
|
return append(1, c);
|
||||||
p_buf.first()[p_len++] = c;
|
|
||||||
p_buf.first()[p_len] = '\0';
|
|
||||||
return *this;
|
|
||||||
}
|
}
|
||||||
template<typename R>
|
template<typename R>
|
||||||
StringBase &operator+=(const R &v) {
|
StringBase &operator+=(const R &v) {
|
||||||
|
|
Loading…
Reference in New Issue