diff --git a/include/wx/listbase.h b/include/wx/listbase.h index 078f7361d6..9d4c14329d 100644 --- a/include/wx/listbase.h +++ b/include/wx/listbase.h @@ -415,7 +415,7 @@ public: // // Returns the index of the newly inserted column or -1 on error. long AppendColumn(const wxString& heading, - int format = wxLIST_FORMAT_LEFT, + wxListColumnFormat format = wxLIST_FORMAT_LEFT, int width = -1); // Add a new column to the control at the position "col". diff --git a/interface/wx/listctrl.h b/interface/wx/listctrl.h index 9ad91f4590..fabe3715e8 100644 --- a/interface/wx/listctrl.h +++ b/interface/wx/listctrl.h @@ -324,7 +324,7 @@ public: @since 2.9.4 */ long AppendColumn(const wxString& heading, - int format = wxLIST_FORMAT_LEFT, + wxListColumnFormat format = wxLIST_FORMAT_LEFT, int width = -1); /** diff --git a/src/common/listctrlcmn.cpp b/src/common/listctrlcmn.cpp index d78425adf7..6bbb4a13ac 100644 --- a/src/common/listctrlcmn.cpp +++ b/src/common/listctrlcmn.cpp @@ -138,7 +138,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxListEvent, wxNotifyEvent) long wxListCtrlBase::AppendColumn(const wxString& heading, - int format, + wxListColumnFormat format, int width) { return InsertColumn(GetColumnCount(), heading, format, width);