don't provide unnecessary (as default) arguments to wxPen ctor, this incidentally fixes deprecation warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-03-17 20:57:50 +00:00
parent 36c10aa142
commit 069b2e5941

View File

@@ -1970,10 +1970,10 @@ wxDataViewMainWindow::wxDataViewMainWindow( wxDataViewCtrl *parent, wxWindowID i
SetBackgroundStyle(wxBG_STYLE_CUSTOM);
m_penRule = wxPen(GetRuleColour(), 1, wxSOLID);
m_penRule = wxPen(GetRuleColour());
//Here I compose a pen can draw black lines, maybe there are something system colour to use
m_penExpander = wxPen( wxColour(0,0,0), 1, wxSOLID );
m_penExpander = wxPen(wxColour(0,0,0));
//Some new added code to deal with the tree structure
m_root = new wxDataViewTreeNode( NULL );
m_root->SetHasChildren(true);