From: Stefan Csomor <csomor@advancedconcepts.ch>
Date: Wed, 3 Mar 2004 09:39:51 +0000 (+0000)
Subject: casting for CW
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/68988224809ee7bd6c3c517e7ac5a3ab6c2b4ab9

casting for CW


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/mac/carbon/control.cpp b/src/mac/carbon/control.cpp
index a2ad5d4e16..033c3bde05 100644
--- a/src/mac/carbon/control.cpp
+++ b/src/mac/carbon/control.cpp
@@ -197,7 +197,7 @@ wxControl::~wxControl()
     if ( (ControlHandle) m_macControl )
     {
         // in case the callback might be called during destruction
-        ::SetControlColorProc( m_macControl , NULL ) ;
+        ::SetControlColorProc( (ControlHandle) m_macControl , NULL ) ;
         ::DisposeControl( (ControlHandle) m_macControl ) ;
         m_macControl = NULL ;
     }
diff --git a/src/mac/control.cpp b/src/mac/control.cpp
index a2ad5d4e16..033c3bde05 100644
--- a/src/mac/control.cpp
+++ b/src/mac/control.cpp
@@ -197,7 +197,7 @@ wxControl::~wxControl()
     if ( (ControlHandle) m_macControl )
     {
         // in case the callback might be called during destruction
-        ::SetControlColorProc( m_macControl , NULL ) ;
+        ::SetControlColorProc( (ControlHandle) m_macControl , NULL ) ;
         ::DisposeControl( (ControlHandle) m_macControl ) ;
         m_macControl = NULL ;
     }