diff options
Diffstat (limited to 'src/lib/corelib/tools/id.cpp')
-rw-r--r-- | src/lib/corelib/tools/id.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/corelib/tools/id.cpp b/src/lib/corelib/tools/id.cpp index 9d31d3776..6dd1147f2 100644 --- a/src/lib/corelib/tools/id.cpp +++ b/src/lib/corelib/tools/id.cpp @@ -69,9 +69,7 @@ namespace Internal { class StringHolder { public: - StringHolder() - : n(0), str(nullptr) - {} + StringHolder() = default; StringHolder(const char *s, int length) : n(length), str(s) @@ -85,9 +83,9 @@ public: h &= 0x0fffffff; } } - int n; - const char *str; - uint h; + int n = 0; + const char *str = nullptr; + uint h = 0; }; static bool operator==(const StringHolder &sh1, const StringHolder &sh2) |