From d3b55f45cbb794865b2afdff6e8333f552c4f091 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 6 Sep 2021 13:01:19 +0200 Subject: [PATCH] CppEditor: Add some member initializations Change-Id: I920973b83f2c8a217845c8e2c64f7ba9ac52807e Reviewed-by: Eike Ziller --- src/plugins/cppeditor/insertionpointlocator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;