Fix several in-class initialization clang warning
This commit is contained in:
@@ -39,7 +39,7 @@ class StringBuffer {
|
||||
|
||||
CharType short_buffer[SHORT_BUFFER_SIZE];
|
||||
String buffer;
|
||||
int string_length = 0;
|
||||
int string_length;
|
||||
|
||||
_FORCE_INLINE_ CharType *current_buffer_ptr() {
|
||||
return static_cast<Vector<CharType> &>(buffer).empty() ? short_buffer : buffer.ptrw();
|
||||
@@ -79,6 +79,10 @@ public:
|
||||
_FORCE_INLINE_ operator String() {
|
||||
return as_string();
|
||||
}
|
||||
|
||||
StringBuffer() {
|
||||
string_length = 0;
|
||||
}
|
||||
};
|
||||
|
||||
template <int SHORT_BUFFER_SIZE>
|
||||
|
||||
Reference in New Issue
Block a user