]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/statbox.cpp
gcc warning
[wxWidgets.git] / src / mac / carbon / statbox.cpp
index d25be44dabef238a432710dac46b50f67bd37fec..87ec656d78230a2914bcdc5faddc61cc5f71ad2f 100644 (file)
@@ -45,7 +45,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
     
     m_peer = new wxMacControl() ;
     verify_noerr(CreateGroupBoxControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, CFSTR("") , 
-        true /*primary*/ , *m_peer ) ) ;  
+        true /*primary*/ , m_peer->GetControlRefAddr() ) ) ;  
 
     MacPostControlCreate(pos,size) ;