Use wxListColumnFormat for wxListCtrl::AppendColumn() format argument.
This is safer than using just an untyped int. Closes #15265. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -415,7 +415,7 @@ public:
|
|||||||
//
|
//
|
||||||
// Returns the index of the newly inserted column or -1 on error.
|
// Returns the index of the newly inserted column or -1 on error.
|
||||||
long AppendColumn(const wxString& heading,
|
long AppendColumn(const wxString& heading,
|
||||||
int format = wxLIST_FORMAT_LEFT,
|
wxListColumnFormat format = wxLIST_FORMAT_LEFT,
|
||||||
int width = -1);
|
int width = -1);
|
||||||
|
|
||||||
// Add a new column to the control at the position "col".
|
// Add a new column to the control at the position "col".
|
||||||
|
@@ -324,7 +324,7 @@ public:
|
|||||||
@since 2.9.4
|
@since 2.9.4
|
||||||
*/
|
*/
|
||||||
long AppendColumn(const wxString& heading,
|
long AppendColumn(const wxString& heading,
|
||||||
int format = wxLIST_FORMAT_LEFT,
|
wxListColumnFormat format = wxLIST_FORMAT_LEFT,
|
||||||
int width = -1);
|
int width = -1);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -138,7 +138,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxListEvent, wxNotifyEvent)
|
|||||||
|
|
||||||
long
|
long
|
||||||
wxListCtrlBase::AppendColumn(const wxString& heading,
|
wxListCtrlBase::AppendColumn(const wxString& heading,
|
||||||
int format,
|
wxListColumnFormat format,
|
||||||
int width)
|
int width)
|
||||||
{
|
{
|
||||||
return InsertColumn(GetColumnCount(), heading, format, width);
|
return InsertColumn(GetColumnCount(), heading, format, width);
|
||||||
|
Reference in New Issue
Block a user