diff options
Diffstat (limited to 'common/str.h')
-rw-r--r-- | common/str.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/str.h b/common/str.h index 20914c1f1f..c3e773c3e4 100644 --- a/common/str.h +++ b/common/str.h @@ -54,7 +54,7 @@ protected: * than 8 makes no sense, since that's the size of member _extern * (on 32 bit machines; 12 bytes on systems with 64bit pointers). */ - static const uint32 _builtinCapacity = 32; + static const uint32 _builtinCapacity = 32 - sizeof(uint32) - sizeof(char*); /** * Length of the string. Stored to avoid having to call strlen @@ -112,7 +112,7 @@ public: String(const String &str); /** Construct a string consisting of the given character. */ - String(char c); + explicit String(char c); ~String(); |