From e5ce564b1d2f2818c36ffbabbaa558c091512e66 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Thu, 6 Oct 2011 13:25:58 +0200 Subject: 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 Reviewed-by: Lars Knoll --- tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/benchmarks/gui') diff --git a/tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp b/tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp index 17eb5a3af7..b92c26ad7d 100644 --- a/tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp +++ b/tests/benchmarks/gui/kernel/qguimetatype/tst_qguimetatype.cpp @@ -81,7 +81,7 @@ void tst_QGuiMetaType::constructGuiType() QFETCH(int, typeId); QBENCHMARK { for (int i = 0; i < 100000; ++i) { - void *data = QMetaType::construct(typeId, (void *)0); + void *data = QMetaType::create(typeId, (void *)0); QMetaType::destroy(typeId, data); } } @@ -103,7 +103,7 @@ void tst_QGuiMetaType::constructGuiTypeCopy() const void *copy = other.constData(); QBENCHMARK { for (int i = 0; i < 100000; ++i) { - void *data = QMetaType::construct(typeId, copy); + void *data = QMetaType::create(typeId, copy); QMetaType::destroy(typeId, data); } } -- cgit v1.2.3