aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-04-04 09:27:45 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-04-04 09:13:59 +0000
commit794ce0cfb14a8000be76d927520f594b3c79b1d5 (patch)
treea7bdecf7b0203f7bfcd10fd3e29c6051ce5b216a
parent568d4aa3a445235f9aa9e1bd12eb0173ffdba6db (diff)
Fix ScriptEngine::PropertyCacheKey1.7
The members of this class must not be references, as its objects are not temporary. Change-Id: I9bd4263079a365f5ffda606d8c8db27b370a1a24 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--src/lib/corelib/language/scriptengine.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/corelib/language/scriptengine.h b/src/lib/corelib/language/scriptengine.h
index 837ba4cd3..56cc58b9e 100644
--- a/src/lib/corelib/language/scriptengine.h
+++ b/src/lib/corelib/language/scriptengine.h
@@ -173,9 +173,9 @@ private:
PropertyCacheKey(const QString &moduleName, const QString &propertyName,
const PropertyMapConstPtr &propertyMap);
private:
- const QString &m_moduleName;
- const QString &m_propertyName;
- const PropertyMapConstPtr &m_propertyMap;
+ const QString m_moduleName;
+ const QString m_propertyName;
+ const PropertyMapConstPtr m_propertyMap;
friend bool operator==(const PropertyCacheKey &lhs, const PropertyCacheKey &rhs);
friend uint qHash(const ScriptEngine::PropertyCacheKey &k, uint seed);