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/corelib/kernel/qmetatype/tst_qmetatype.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/benchmarks/corelib') diff --git a/tests/benchmarks/corelib/kernel/qmetatype/tst_qmetatype.cpp b/tests/benchmarks/corelib/kernel/qmetatype/tst_qmetatype.cpp index 6321fbf83d..413feba2e2 100644 --- a/tests/benchmarks/corelib/kernel/qmetatype/tst_qmetatype.cpp +++ b/tests/benchmarks/corelib/kernel/qmetatype/tst_qmetatype.cpp @@ -253,7 +253,7 @@ void tst_QMetaType::constructCoreType() 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); } } @@ -275,7 +275,7 @@ void tst_QMetaType::constructCoreTypeCopy() 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