From: Vadim Zeitlin Date: Mon, 17 Mar 2008 20:57:50 +0000 (+0000) Subject: don't provide unnecessary (as default) arguments to wxPen ctor, this incidentally... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/069b2e594107028ef3ee0a03b8b9fd13b0fa4f32?ds=inline 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 --- diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 0d0b1ad120..b509ac317d 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -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);