From 0522ef2ec6de1bc35721613ded92c832930e9a9e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 29 Apr 2013 16:04:58 +0200 Subject: Correct prototypes --- ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp | 4 ++-- ftnoir_filter_ewma2/ftnoir_filter_ewma2_dialog.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ftnoir_filter_ewma2') diff --git a/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp b/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp index c08b7e23..933a39e9 100644 --- a/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp +++ b/ftnoir_filter_ewma2/ftnoir_filter_ewma2.cpp @@ -192,7 +192,7 @@ void FTNoIR_Filter::FilterHeadPoseData(double *current_camera_position, double * // _GetFilter@0 - Common name decoration for __stdcall functions in C language. //#pragma comment(linker, "/export:GetFilter=_GetFilter@0") -extern "C" FTNOIR_FILTER_BASE_EXPORT void* CALLING_CONVENTION GetConstructor() +extern "C" FTNOIR_FILTER_BASE_EXPORT IFilter* CALLING_CONVENTION GetConstructor() { - return (IFilter*) new FTNoIR_Filter; + return new FTNoIR_Filter; } diff --git a/ftnoir_filter_ewma2/ftnoir_filter_ewma2_dialog.cpp b/ftnoir_filter_ewma2/ftnoir_filter_ewma2_dialog.cpp index 3e0fdb25..694bed88 100644 --- a/ftnoir_filter_ewma2/ftnoir_filter_ewma2_dialog.cpp +++ b/ftnoir_filter_ewma2/ftnoir_filter_ewma2_dialog.cpp @@ -193,7 +193,7 @@ void FilterControls::save() { // _GetFilterDialog@0 - Common name decoration for __stdcall functions in C language. //#pragma comment(linker, "/export:GetFilterDialog=_GetFilterDialog@0") -extern "C" FTNOIR_FILTER_BASE_EXPORT void* CALLING_CONVENTION GetDialog( ) +extern "C" FTNOIR_FILTER_BASE_EXPORT IFilterDialog* CALLING_CONVENTION GetDialog( ) { - return (IFilterDialog*) new FilterControls; + return new FilterControls; } -- cgit v1.2.3