]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxControl as wxComboBox base class for wxRTTI in all ports.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Jan 2011 14:13:17 +0000 (14:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Jan 2011 14:13:17 +0000 (14:13 +0000)
wxComboBox only derives from wxChoice in wxMSW but not in the other ports so
use wxControl as its base class in wxIMPLEMENT_DYNAMIC_CLASS_XTI() macro in
all ports.

See #12841.

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

src/common/combocmn.cpp

index 0f7befea19441e94d0900c4395a97177e2c21ca7..3c47380fc7b38934fc5e15cffa52bb88f2ee4ac7 100644 (file)
@@ -81,11 +81,7 @@ wxFLAGS_MEMBER(wxCB_DROPDOWN)
 
 wxEND_FLAGS( wxComboBoxStyle )
 
-#ifdef __WXUNIVERSAL__
 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxComboBox, wxControl, "wx/combobox.h")
-#else
-wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxComboBox, wxChoice, "wx/combobox.h")
-#endif
 
 wxBEGIN_PROPERTIES_TABLE(wxComboBox)
 wxEVENT_PROPERTY( Select, wxEVT_COMMAND_COMBOBOX_SELECTED, wxCommandEvent )