diff --git a/include/wx/mac/carbon/private.h b/include/wx/mac/carbon/private.h index 395caf466a..b41aecbf20 100644 --- a/include/wx/mac/carbon/private.h +++ b/include/wx/mac/carbon/private.h @@ -261,14 +261,22 @@ public : OSStatus SetParameter( EventParamName inName, EventParamType inType, UInt32 inSize, void * inData) ; - template OSStatus SetParameter( EventParamName inName, EventParamType type , T *data ) + template OSStatus SetParameter( EventParamName inName, EventParamType inDesiredType , T *data ) { - return SetParameter( inName, type , sizeof( T ) , data ) ; + return SetParameter( inName, inDesiredType , sizeof( T ) , data ) ; + } + template OSStatus SetParameter( EventParamName inName, EventParamType inDesiredType , T data ) + { + return SetParameter( inName, inDesiredType , &data ) ; } template OSStatus SetParameter( EventParamName inName, T *data ) { return SetParameter( inName, wxMacGetEventParamType() , data ) ; } + template OSStatus SetParameter( EventParamName inName, T data ) + { + return SetParameter( inName, wxMacGetEventParamType() , &data ) ; + } EventKind GetKind() {