diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-09-29 11:50:31 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-05 02:39:02 (GMT) |
commit | c4190288ca68eca9b84ccab67d860517a6a8e7c5 (patch) | |
tree | 8d75bd8e1d7ae0d05478ac30b01b70ad36eb7e81 /src/script | |
parent | 061c85a17ecb303676b548e6daef6e64967ca1e7 (diff) | |
download | Qt-c4190288ca68eca9b84ccab67d860517a6a8e7c5.zip Qt-c4190288ca68eca9b84ccab67d860517a6a8e7c5.tar.gz Qt-c4190288ca68eca9b84ccab67d860517a6a8e7c5.tar.bz2 |
Use placement new correctly
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/bridge/qscriptdeclarativeclass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/bridge/qscriptdeclarativeclass.cpp b/src/script/bridge/qscriptdeclarativeclass.cpp index 47b693f..c753379 100644 --- a/src/script/bridge/qscriptdeclarativeclass.cpp +++ b/src/script/bridge/qscriptdeclarativeclass.cpp @@ -70,8 +70,8 @@ void QScriptDeclarativeClass::initPersistentIdentifier(void **d, Identifier *i, static_cast<QScriptEnginePrivate *>(QObjectPrivate::get(d_ptr->engine)); JSC::ExecState* exec = p->currentFrame; - new (*d) JSC::Identifier(exec, (UChar *)str.constData(), str.size()); - *i = (Identifier)((JSC::Identifier *)*d)->ustring().rep(); + new (d) JSC::Identifier(exec, (UChar *)str.constData(), str.size()); + *i = (Identifier)((JSC::Identifier *)d)->ustring().rep(); } void QScriptDeclarativeClass::initPersistentIdentifier(void **d, Identifier *i, const Identifier &id) @@ -80,7 +80,7 @@ void QScriptDeclarativeClass::initPersistentIdentifier(void **d, Identifier *i, static_cast<QScriptEnginePrivate *>(QObjectPrivate::get(d_ptr->engine)); JSC::ExecState* exec = p->currentFrame; - new (*d) JSC::Identifier(exec, (JSC::UString::Rep *)id); + new (d) JSC::Identifier(exec, (JSC::UString::Rep *)id); *i = id; } |