]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
added wx/defs.h include to correct compilation issues under Mac OS X
[wxWidgets.git] / src / common / treebase.cpp
index a9dce6dddb60259240e5456bd3cee44120a78ce1..7c83963ef97c5acf5dba0aec0bea23fd8db0b66f 100644 (file)
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
+#if wxUSE_TREECTRL
+
 #include "wx/treebase.h"
 #include "wx/settings.h"
 #include "wx/log.h"
@@ -67,11 +69,12 @@ DEFINE_EVENT_TYPE(wxEVT_COMMAND_TREE_END_DRAG)
 
 IMPLEMENT_DYNAMIC_CLASS(wxTreeEvent, wxNotifyEvent)
 
+
 wxTreeEvent::wxTreeEvent(wxEventType commandType, int id)
            : wxNotifyEvent(commandType, id)
 {
-    m_code = 0;
-    m_itemOld = 0;
+    m_itemOld = 0l;
 }
 
+#endif // wxUSE_TREECTRL