Avoid -Wcast-qual warning
This commit is contained in:
@@ -68,8 +68,8 @@ template <class Type>
|
|||||||
inline Type* wxCFAutorelease(Type *r)
|
inline Type* wxCFAutorelease(Type *r)
|
||||||
{
|
{
|
||||||
if ( r != NULL )
|
if ( r != NULL )
|
||||||
return (Type*)::CFAutorelease((CFTypeRef)r);
|
r = const_cast<Type*>(static_cast<const Type*>(::CFAutorelease(static_cast<CFTypeRef>(r))));
|
||||||
return NULL;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! @function wxCFRetain
|
/*! @function wxCFRetain
|
||||||
|
Reference in New Issue
Block a user