mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
24 lines
543 B
C++
24 lines
543 B
C++
#include <QSharedData>
|
|
#include <qshareddata.h>
|
|
#include "gen_qshareddata.h"
|
|
#include "_cgo_export.h"
|
|
|
|
void QSharedData_new(QSharedData** outptr_QSharedData) {
|
|
QSharedData* ret = new QSharedData();
|
|
*outptr_QSharedData = ret;
|
|
}
|
|
|
|
void QSharedData_new2(QSharedData* param1, QSharedData** outptr_QSharedData) {
|
|
QSharedData* ret = new QSharedData(*param1);
|
|
*outptr_QSharedData = ret;
|
|
}
|
|
|
|
void QSharedData_Delete(QSharedData* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QSharedData*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|