summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qmetaobject.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-01-31 13:53:44 +0100
committerUlf Hermann <ulf.hermann@qt.io>2023-02-02 15:57:09 +0100
commit41248f259005aa3052d569def9f873afee4ac8f6 (patch)
tree216562ae545e0ec41a69bb366d6d4f182a311402 /src/corelib/kernel/qmetaobject.cpp
parentb2912174572dea2a7bff59414418d602ef58a00a (diff)
moc: Allow calling ctors on pre-allocated data
When calling a ctor this way, an object is created in the memory pointed to by _a[0] using the other arguments for the ctor. This allows separate allocation and initialization of an object through the metaobject system. Fixes: QTBUG-108879 Change-Id: Ifb154373ee42faab281cfb62aa14334980ec6b7d Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetaobject.cpp')
-rw-r--r--src/corelib/kernel/qmetaobject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/kernel/qmetaobject.cpp b/src/corelib/kernel/qmetaobject.cpp
index 4475d6be8d..73c62da896 100644
--- a/src/corelib/kernel/qmetaobject.cpp
+++ b/src/corelib/kernel/qmetaobject.cpp
@@ -107,6 +107,7 @@ using namespace Qt::StringLiterals;
\value RegisterMethodArgumentMetaType
\value BindableProperty
\value CustomCall
+ \value ConstructInPlace
*/
/*!