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_FD/ftnoir_tracker_facedetect.cpp | 2 +- FTNoIR_Tracker_FD/ftnoir_tracker_facedetect_dialog.cpp | 2 +- FTNoIR_Tracker_FD/ftnoir_tracker_facedetect_dll.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'FTNoIR_Tracker_FD') diff --git a/FTNoIR_Tracker_FD/ftnoir_tracker_facedetect.cpp b/FTNoIR_Tracker_FD/ftnoir_tracker_facedetect.cpp index 1602db85..620fb9fd 100644 --- a/FTNoIR_Tracker_FD/ftnoir_tracker_facedetect.cpp +++ b/FTNoIR_Tracker_FD/ftnoir_tracker_facedetect.cpp @@ -208,7 +208,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_FD/ftnoir_tracker_facedetect_dialog.cpp b/FTNoIR_Tracker_FD/ftnoir_tracker_facedetect_dialog.cpp index 3c080898..71b19242 100644 --- a/FTNoIR_Tracker_FD/ftnoir_tracker_facedetect_dialog.cpp +++ b/FTNoIR_Tracker_FD/ftnoir_tracker_facedetect_dialog.cpp @@ -174,7 +174,7 @@ void TrackerControls::doCancel() { // _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_FD/ftnoir_tracker_facedetect_dll.cpp b/FTNoIR_Tracker_FD/ftnoir_tracker_facedetect_dll.cpp index 6bfa1284..8e010e3e 100644 --- a/FTNoIR_Tracker_FD/ftnoir_tracker_facedetect_dll.cpp +++ b/FTNoIR_Tracker_FD/ftnoir_tracker_facedetect_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