]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/choice.cpp
Added wxSizer::Insert()
[wxWidgets.git] / src / mac / carbon / choice.cpp
index da3c4efc925bdd5db6eb8cbf9149c30a8e5e7130..301b0731a84a8cbfc4e89cfa551c17678d70274c 100644 (file)
@@ -17,9 +17,7 @@
 #include "wx/choice.h"
 #include "wx/mac/uma.h"
 
 #include "wx/choice.h"
 #include "wx/mac/uma.h"
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
 IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
-#endif
 
 bool wxChoice::Create(wxWindow *parent, wxWindowID id,
            const wxPoint& pos,
 
 bool wxChoice::Create(wxWindow *parent, wxWindowID id,
            const wxPoint& pos,
@@ -89,9 +87,8 @@ void wxChoice::MacHandleControlClick( ControlHandle control , SInt16 controlpart
     wxCommandEvent event(wxEVT_COMMAND_CHOICE_SELECTED, m_windowId );
        event.SetInt(GetSelection());
     event.SetEventObject(this);
     wxCommandEvent event(wxEVT_COMMAND_CHOICE_SELECTED, m_windowId );
        event.SetInt(GetSelection());
     event.SetEventObject(this);
-    event.SetString(copystring(GetStringSelection()));
+    event.SetString(GetStringSelection());
     ProcessCommand(event);
     ProcessCommand(event);
-    delete[] event.GetString();
 }
 
 
 }