diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2010-03-02 05:08:11 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2010-03-02 05:08:11 (GMT) |
commit | 685c0b930a1d1ecfdcc78aa688a333564cc9ca5b (patch) | |
tree | f47c92daf7f02621d76a145d648950a4af26b456 /src/declarative | |
parent | 861a9f127e04aa135649ed64f268d72da6a35fd9 (diff) | |
download | Qt-685c0b930a1d1ecfdcc78aa688a333564cc9ca5b.zip Qt-685c0b930a1d1ecfdcc78aa688a333564cc9ca5b.tar.gz Qt-685c0b930a1d1ecfdcc78aa688a333564cc9ca5b.tar.bz2 |
Optimization.
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/qml/qdeclarativepropertycache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativepropertycache.cpp b/src/declarative/qml/qdeclarativepropertycache.cpp index 08b47b7..fea59e5 100644 --- a/src/declarative/qml/qdeclarativepropertycache.cpp +++ b/src/declarative/qml/qdeclarativepropertycache.cpp @@ -155,9 +155,9 @@ QDeclarativePropertyCache::Data QDeclarativePropertyCache::create(const QMetaObj int parenIdx = methodName.indexOf(QLatin1Char('(')); Q_ASSERT(parenIdx != -1); - methodName = methodName.left(parenIdx); + QStringRef methodNameRef = methodName.leftRef(parenIdx); - if (methodName == property) { + if (methodNameRef == property) { rv.load(m); return rv; } |