void entry::destruct() { switch(m_type) { case int_t: call_destructor(reinterpret_cast<integer_type*>(data)); break; case string_t: call_destructor(reinterpret_cast<string_type*>(data)); break; case list_t: call_destructor(reinterpret_cast<list_type*>(data)); break; case dictionary_t: call_destructor(reinterpret_cast<dictionary_type*>(data)); break; default: LIBED2K_ASSERT(m_type == undefined_t); break; } m_type = undefined_t; #ifdef LIBED2K_DEBUG m_type_queried = false; #endif }
void entry::destruct() { switch(m_type) { case int_t: call_destructor(reinterpret_cast<integer_type*>(&data)); break; case string_t: call_destructor(reinterpret_cast<string_type*>(&data)); break; case list_t: call_destructor(reinterpret_cast<list_type*>(&data)); break; case dictionary_t: call_destructor(reinterpret_cast<dictionary_type*>(&data)); break; case preformatted_t: call_destructor(reinterpret_cast<preformatted_type*>(&data)); break; default: TORRENT_ASSERT(m_type == undefined_t); break; } m_type = undefined_t; #if TORRENT_USE_ASSERTS m_type_queried = false; #endif }
void entry::destruct() { switch(m_type) { case int_t: call_destructor(reinterpret_cast<integer_type*>(data)); break; case string_t: call_destructor(reinterpret_cast<string_type*>(data)); break; case list_t: call_destructor(reinterpret_cast<list_type*>(data)); break; case dictionary_t: call_destructor(reinterpret_cast<dictionary_type*>(data)); break; default: assert(m_type == undefined_t); break; } }
QTD_EXTERN QTD_EXPORT void qtd_QXmlDeclHandler_destroy(void* nativeId) { call_destructor((QXmlDeclHandler_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QTableWidgetSelectionRange_destroy(void* nativeId) { call_destructor((QTableWidgetSelectionRange*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QDomCDATASection_destroy(void* nativeId) { call_destructor((QDomCDATASection*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QAbstractImageIOHandlerFactory_destroy(void* nativeId) { call_destructor((QAbstractImageIOHandlerFactory_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QFont_destroy(void* nativeId) { call_destructor((QFont*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QItemSelectionRange_destroy(void* nativeId) { call_destructor((QItemSelectionRange*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QPrinter_destroy(void* nativeId) { call_destructor((QPrinter_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QPolygonF_destroy(void* nativeId) { call_destructor((QPolygonF*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QPainterPath_destroy(void* nativeId) { call_destructor((QPainterPath*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QBrush_destroy(void* nativeId) { call_destructor((QBrush*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QGraphicsEllipseItem_destroy(void* nativeId) { call_destructor((QGraphicsEllipseItem_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QAbstractStyleFactory_destroy(void* nativeId) { call_destructor((QAbstractStyleFactory_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QAbstractFileEngine_MapExtensionReturn_destroy(void* nativeId) { call_destructor((QAbstractFileEngine_MapExtensionReturn_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QWidgetItem_destroy(void* nativeId) { call_destructor((QWidgetItem_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QStyleOptionMenuItem_destroy(void* nativeId) { call_destructor((QStyleOptionMenuItem_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QTextLine_destroy(void* nativeId) { call_destructor((QTextLine*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QTextCursor_destroy(void* nativeId) { call_destructor((QTextCursor*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QByteArray_destroy(void* nativeId) { call_destructor((QByteArray*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QSvgGenerator_destroy(void* nativeId) { call_destructor((QSvgGenerator_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QAbstractIconEngineFactoryV2_destroy(void* nativeId) { call_destructor((QAbstractIconEngineFactoryV2_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QMatrix_destroy(void* nativeId) { call_destructor((QMatrix*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QStyleOptionTitleBar_destroy(void* nativeId) { call_destructor((QStyleOptionTitleBar_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QStyleOptionDockWidgetV2_destroy(void* nativeId) { call_destructor((QStyleOptionDockWidgetV2_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QSslKey_destroy(void* nativeId) { call_destructor((QSslKey*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QTextDocumentFragment_destroy(void* nativeId) { call_destructor((QTextDocumentFragment*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QTextLayout_destroy(void* nativeId) { call_destructor((QTextLayout_QtDShell*)nativeId); }
QTD_EXTERN QTD_EXPORT void qtd_QStandardItem_destroy(void* nativeId) { call_destructor((QStandardItem_QtDShell*)nativeId); }