Rename QMetaType::construct() to create()
authorKent Hansen <kent.hansen@nokia.com>
Thu, 6 Oct 2011 11:25:58 +0000 (13:25 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 11 Oct 2011 14:01:45 +0000 (16:01 +0200)
commite5ce564b1d2f2818c36ffbabbaa558c091512e66
tree25a8f396b796c641b5f4b49915c1d159c223abc4
parent612ac2b8c8e0d5c67b17ad3a9a564f5a049846a6
Rename QMetaType::construct() to create()

create() is symmetric with destroy().

Also rename the internal methods and fields to be
consistent (qDeleteHelper already had the "right"
name, though!).

This change will allow us to use construct() and
destruct() for something else: Placement new-style
allocation (QTBUG-12574).

The old construct() is still kept for now, until
the other repositories have been updated to use
create().

Change-Id: Iceb184af6cffcb0a634359cfc3516c718ba0c2f5
Reviewed-on: http://codereview.qt-project.org/6342
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
14 files changed:
dist/changes-5.0.0
doc/src/snippets/code/src_corelib_kernel_qmetatype.cpp
src/corelib/kernel/qmetaobject.cpp
src/corelib/kernel/qmetatype.cpp
src/corelib/kernel/qmetatype.h
src/corelib/kernel/qobject.cpp
src/corelib/kernel/qvariant.cpp
src/gui/kernel/qguivariant.cpp
src/testlib/qtestdata.cpp
src/widgets/kernel/qwidgetsvariant.cpp
tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
tests/auto/corelib/kernel/qvariant/tst_qvariant.cpp
tests/benchmarks/corelib/kernel/qmetatype/tst_qmetatype.cpp
tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp