From ab0d60becc2d1b89c812193c179892d6acd4912f Mon Sep 17 00:00:00 2001 From: Patrick Ruoff Date: Fri, 21 Sep 2012 14:00:34 +0000 Subject: RAII-style dll management 1: Replaced autoptr and release with virtual destructors git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@155 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp | 2 +- FTNoIR_Tracker_UDP/ftnoir_tracker_udp_dialog.cpp | 2 +- FTNoIR_Tracker_UDP/ftnoir_tracker_udp_dll.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'FTNoIR_Tracker_UDP') diff --git a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp index 4d367013..5229ff06 100644 --- a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp +++ b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp.cpp @@ -196,7 +196,7 @@ void FTNoIR_Tracker::loadSettings() { // _GetTracker@0 - Common name decoration for __stdcall functions in C language. #pragma comment(linker, "/export:GetTracker=_GetTracker@0") -FTNOIR_TRACKER_BASE_EXPORT TRACKERHANDLE __stdcall GetTracker() +FTNOIR_TRACKER_BASE_EXPORT ITrackerPtr __stdcall GetTracker() { return new FTNoIR_Tracker; } diff --git a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp_dialog.cpp b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp_dialog.cpp index 48e61ba4..c5bee64f 100644 --- a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp_dialog.cpp +++ b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp_dialog.cpp @@ -169,7 +169,7 @@ void TrackerControls::save() { // _GetTrackerDialog@0 - Common name decoration for __stdcall functions in C language. #pragma comment(linker, "/export:GetTrackerDialog=_GetTrackerDialog@0") -FTNOIR_TRACKER_BASE_EXPORT TRACKERDIALOGHANDLE __stdcall GetTrackerDialog( ) +FTNOIR_TRACKER_BASE_EXPORT ITrackerDialogPtr __stdcall GetTrackerDialog( ) { return new TrackerControls; } diff --git a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp_dll.cpp b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp_dll.cpp index be81ac80..a086a888 100644 --- a/FTNoIR_Tracker_UDP/ftnoir_tracker_udp_dll.cpp +++ b/FTNoIR_Tracker_UDP/ftnoir_tracker_udp_dll.cpp @@ -79,7 +79,7 @@ void FTNoIR_TrackerDll::getIcon(QIcon *icon) // _GetTrackerDll@0 - Common name decoration for __stdcall functions in C language. #pragma comment(linker, "/export:GetTrackerDll=_GetTrackerDll@0") -FTNOIR_TRACKER_BASE_EXPORT TRACKERDLLHANDLE __stdcall GetTrackerDll() +FTNOIR_TRACKER_BASE_EXPORT ITrackerDllPtr __stdcall GetTrackerDll() { return new FTNoIR_TrackerDll; } -- cgit v1.2.3