diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-06-02 13:51:44 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2017-06-02 18:31:42 +0000 |
commit | 8f525a7c5ecc185eff69cc739f78b419c0cb2d3a (patch) | |
tree | de07626e1281299167ed9246e03ca00f99a4236e | |
parent | 2503ffaa94be26c87be411fd658ccaf30a11912b (diff) |
Modernize EvaluatorScriptClass::QueryResult
Remove the default constructor that just existed to initialize member
variables.
Change-Id: Ia7282957ae640d1518f7be4764c105aba168b275
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | src/lib/corelib/language/evaluatorscriptclass.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/corelib/language/evaluatorscriptclass.h b/src/lib/corelib/language/evaluatorscriptclass.h index c6c16cf44..3467f3967 100644 --- a/src/lib/corelib/language/evaluatorscriptclass.h +++ b/src/lib/corelib/language/evaluatorscriptclass.h @@ -85,10 +85,6 @@ private: struct QueryResult { - QueryResult() - : data(0), itemOfProperty(0) - {} - bool isNull() const { static const QueryResult pristine; @@ -104,8 +100,8 @@ private: } bool foundInParent = false; - const EvaluationData *data; - const Item *itemOfProperty; // The item that owns the property. + const EvaluationData *data = nullptr; + const Item *itemOfProperty = nullptr; // The item that owns the property. ValuePtr value; }; QueryResult m_queryResult; |