diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-07-22 14:40:37 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-08-30 13:18:28 +0200 |
commit | 7d397be0cb6ae8f90d07903ff061d1600af15cb8 (patch) | |
tree | e60362571da377229300cdf0a3e4c7b1b78a8d14 /src/declarative/qml/qdeclarativecompiler.cpp | |
parent | f11e06cc9ac730bd3a06b6ed86e62b1e11064841 (diff) |
Reduce allocations
Change-Id: I230424147ad195239d725359fcd6dc5568f102a7
Reviewed-on: http://codereview.qt.nokia.com/3772
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativecompiler.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativecompiler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler.cpp b/src/declarative/qml/qdeclarativecompiler.cpp index 2025774c4e..6874c2a415 100644 --- a/src/declarative/qml/qdeclarativecompiler.cpp +++ b/src/declarative/qml/qdeclarativecompiler.cpp @@ -2827,8 +2827,8 @@ bool QDeclarativeCompiler::buildDynamicMeta(QDeclarativeParser::Object *obj, Dyn if (jj != 0) { *d++ = ','; *d2++ = ','; } strcpy(d, s->parameterTypes.at(jj).constData()); d += s->parameterTypes.at(jj).length(); - strcpy(d2, s->parameterNames.at(jj).constData()); - d2 += s->parameterNames.at(jj).length(); + s->parameterNames.at(jj).writeUtf8(d2); + d2 += s->parameterNames.at(jj).utf8length(); } *d++ = ')'; *d = 0; |