File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -278,11 +278,11 @@ class String {
278
278
// parsing/conversion
279
279
long toInt (void ) const ;
280
280
float toFloat (void ) const ;
281
- double toDouble (void ) const ;
281
+ double toDouble (void ) const ;
282
282
283
283
protected:
284
284
// Contains the string info when we're not in SSO mode
285
- struct _ptr {
285
+ struct _ptr {
286
286
char * buff;
287
287
uint16_t cap;
288
288
uint16_t len;
@@ -306,7 +306,7 @@ class String {
306
306
inline void setSSO (bool set) { sso.isHeap = !set; }
307
307
inline void setLen (int len) { if (isSSO ()) sso.len = len; else ptr.len = len; }
308
308
inline void setCapacity (int cap) { if (!isSSO ()) ptr.cap = cap; }
309
- inline void setBuffer (char *buff) { if (!isSSO ()) ptr.buff = buff; }
309
+ inline void setBuffer (char *buff) { if (!isSSO ()) ptr.buff = buff; }
310
310
// Buffer accessor functions
311
311
inline const char *buffer () const { return (const char *)(isSSO () ? sso.buff : ptr.buff ); }
312
312
inline char *wbuffer () const { return isSSO () ? const_cast <char *>(sso.buff ) : ptr.buff ; } // Writable version of buffer
You can’t perform that action at this time.
0 commit comments