aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativecompiler_p.h
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-07-21 14:20:05 +1000
committerQt by Nokia <qt-info@nokia.com>2011-08-30 13:18:28 +0200
commita257441a420d850205a5910bc2d3c1aa67bfc3e8 (patch)
treea8bf980a6c777e22bdceaa9d26c72f57e7c366a8 /src/declarative/qml/qdeclarativecompiler_p.h
parent28fcf9485b496c986b0b8c88a194d76bec132b4c (diff)
Use strings more conservatively
Also adds the ability to efficiently estimate the length of, and write out to, UTF8 from QHashedStringRef. Change-Id: I8b6226ba41d855246ddf7d6268f8045c92ae219e Reviewed-on: http://codereview.qt.nokia.com/3764 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.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler_p.h b/src/declarative/qml/qdeclarativecompiler_p.h
index e8f5c6ac52..587e401952 100644
--- a/src/declarative/qml/qdeclarativecompiler_p.h
+++ b/src/declarative/qml/qdeclarativecompiler_p.h
@@ -230,8 +230,8 @@ public:
static bool isAttachedPropertyName(const QString &);
static bool isSignalPropertyName(const QString &);
- static bool isAttachedPropertyName(const QStringRef &);
- static bool isSignalPropertyName(const QStringRef &);
+ static bool isAttachedPropertyName(const QHashedStringRef &);
+ static bool isSignalPropertyName(const QHashedStringRef &);
int evaluateEnum(const QByteArray& script) const; // for QDeclarativeCustomParser::evaluateEnum
const QMetaObject *resolveType(const QByteArray& name) const; // for QDeclarativeCustomParser::resolveType
@@ -340,11 +340,11 @@ private:
QStringList deferredProperties(QDeclarativeParser::Object *);
QDeclarativePropertyCache::Data *property(QDeclarativeParser::Object *, int);
- QDeclarativePropertyCache::Data *property(QDeclarativeParser::Object *, const QStringRef &,
+ QDeclarativePropertyCache::Data *property(QDeclarativeParser::Object *, const QHashedStringRef &,
bool *notInRevision = 0);
- QDeclarativePropertyCache::Data *signal(QDeclarativeParser::Object *, const QStringRef &,
+ QDeclarativePropertyCache::Data *signal(QDeclarativeParser::Object *, const QHashedStringRef &,
bool *notInRevision = 0);
- int indexOfProperty(QDeclarativeParser::Object *, const QStringRef &, bool *notInRevision = 0);
+ int indexOfProperty(QDeclarativeParser::Object *, const QHashedStringRef &, bool *notInRevision = 0);
int indexOfProperty(QDeclarativeParser::Object *, const QString &, bool *notInRevision = 0);
int indexOfSignal(QDeclarativeParser::Object *, const QString &, bool *notInRevision = 0);