diff --git a/src/plugins/cppeditor/insertionpointlocator.cpp b/src/plugins/cppeditor/insertionpointlocator.cpp index ed5a57ae4c0..7d657bacc3b 100644 --- a/src/plugins/cppeditor/insertionpointlocator.cpp +++ b/src/plugins/cppeditor/insertionpointlocator.cpp @@ -111,8 +111,8 @@ protected: } private: - const Class *_clazz; - ClassSpecifierAST *_result; + const Class * const _clazz; + ClassSpecifierAST *_result = nullptr; }; void findMatch(const QList &ranges, @@ -397,8 +397,8 @@ namespace { template class HighestValue { - Key _key; - Value _value; + Key _key{}; + Value _value{}; bool _set = false; public: HighestValue() = default;