aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativecompiler_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-07-20 17:47:57 +1000
committerQt by Nokia <qt-info@nokia.com>2011-08-30 13:18:28 +0200
commit28fcf9485b496c986b0b8c88a194d76bec132b4c (patch)
treec543df77e1d827b953ea616487c40f20a9c5e52d /src/declarative/qml/qdeclarativecompiler_p.h
parentff18fc0cee6ec7e9f39bb4cfb381e32f495d028f (diff)
Add QFastMetaBuilder
This is a faster, but less convenient, version of QMetaObjectBuilder. The aim is to reduce allocations made during building the meta object by doing it in two passes - first you reserve all the strings needed and then you provide their data. Change-Id: Id9caf9c9c6c2ab6a5219e5cea9363463a4ebf822 Reviewed-on: http://codereview.qt.nokia.com/3763 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativecompiler_p.h')
-rw-r--r--src/declarative/qml/qdeclarativecompiler_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler_p.h b/src/declarative/qml/qdeclarativecompiler_p.h
index 66d094e886..e8f5c6ac52 100644
--- a/src/declarative/qml/qdeclarativecompiler_p.h
+++ b/src/declarative/qml/qdeclarativecompiler_p.h
@@ -301,10 +301,11 @@ private:
bool buildBinding(QDeclarativeParser::Value *, QDeclarativeParser::Property *prop,
const QDeclarativeCompilerTypes::BindingContext &ctxt);
bool buildComponentFromRoot(QDeclarativeParser::Object *obj, const QDeclarativeCompilerTypes::BindingContext &);
- bool compileAlias(QMetaObjectBuilder &,
+ bool compileAlias(QFastMetaBuilder &,
QByteArray &data,
QDeclarativeParser::Object *obj,
- const QDeclarativeParser::Object::DynamicProperty &);
+ int propIndex, int aliasIndex,
+ QDeclarativeParser::Object::DynamicProperty &);
bool completeComponentBuild();
bool checkValidId(QDeclarativeParser::Value *, const QString &);