miqt/qt6/gen_qshareddata.cpp

37 lines
899 B
C++
Raw Normal View History

2024-10-20 05:21:03 +00:00
#include <QSharedData>
#include <qshareddata.h>
#include "gen_qshareddata.h"
#include "_cgo_export.h"
2024-11-19 06:29:06 +00:00
void QSharedData_new(QSharedData** outptr_QSharedData) {
QSharedData* ret = new QSharedData();
*outptr_QSharedData = ret;
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
void QSharedData_new2(QSharedData* param1, QSharedData** outptr_QSharedData) {
QSharedData* ret = new QSharedData(*param1);
*outptr_QSharedData = ret;
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
void QSharedData_Delete(QSharedData* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QSharedData*>( self );
} else {
delete self;
}
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
void QAdoptSharedDataTag_new(QAdoptSharedDataTag** outptr_QAdoptSharedDataTag) {
QAdoptSharedDataTag* ret = new QAdoptSharedDataTag();
*outptr_QAdoptSharedDataTag = ret;
2024-10-20 05:21:03 +00:00
}
2024-11-19 06:29:06 +00:00
void QAdoptSharedDataTag_Delete(QAdoptSharedDataTag* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QAdoptSharedDataTag*>( self );
} else {
delete self;
}
2024-10-20 05:21:03 +00:00
}