diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-10 15:17:36 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-16 17:14:20 +0000 |
commit | 61f218b4e772c1d97e32ef8031de0043473ebbef (patch) | |
tree | 3e3cb0fb11c338bef3595de027a31eb95a73f545 /src/qml/qml/qqmlcontext_p.h | |
parent | 496ddbfd1fe27bdddf5c15cd0ea70df452a3ec04 (diff) |
Speed up object creation
Avoid copying url and file name twice into the context every time we
instantiate an object.
Change-Id: I1c76b80b9c44f95512af5899d760151f6dcd7bb5
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcontext_p.h')
-rw-r--r-- | src/qml/qml/qqmlcontext_p.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlcontext_p.h b/src/qml/qml/qqmlcontext_p.h index ddf7d5de75..40bd310cb7 100644 --- a/src/qml/qml/qqmlcontext_p.h +++ b/src/qml/qml/qqmlcontext_p.h @@ -162,9 +162,11 @@ public: // Any script blocks that exist on this context QV4::PersistentValue importedScripts; // This is a JS Array - // Context base url - QUrl url; - QString urlString; + QUrl baseUrl; + QString baseUrlString; + + QUrl url() const; + QString urlString() const; // List of imports that apply to this context QQmlTypeNameCache *imports; |