]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/cursor.cpp
compilation warning fix
[wxWidgets.git] / src / mac / carbon / cursor.cpp
index 23b9eb4c0cd80eceec8e03a168fb648b711f5678..247d9107528a5fbe070dc7c7bb8fed40d96501f7 100644 (file)
@@ -217,8 +217,9 @@ void wxCursor::MacInstall() const
 {
        if ( m_refData && M_CURSORDATA->m_hCursor )
        {
-               ::SetCursor(  *((CursHandle)M_CURSORDATA->m_hCursor) ) ;
-               gMacCurrentCursor = (CursHandle)M_CURSORDATA->m_hCursor ;
+               CursHandle ch = ((CursHandle)M_CURSORDATA->m_hCursor) ;
+               ::SetCursor(  *ch ) ;
+               gMacCurrentCursor = ch ;
        }
        else
        {