]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxListColumnFormat for wxListCtrl::AppendColumn() format argument.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 29 Jun 2013 12:52:11 +0000 (12:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 29 Jun 2013 12:52:11 +0000 (12:52 +0000)
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

include/wx/listbase.h
interface/wx/listctrl.h
src/common/listctrlcmn.cpp

index 078f7361d6a0a7c25bd959a22a106feffa1d512a..9d4c14329d0d593ff152b1a5196bb55628faed88 100644 (file)
@@ -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".
index 9ad91f4590c6f09e4f39df881bcab760bfdce89d..fabe3715e8a3afdb4ce31f535993c0f67f6a4dd7 100644 (file)
@@ -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);
 
     /**
index d78425adf7aa6565f212e589c0ca9fd59d232d75..6bbb4a13accfdfb2c8a299cc0491ac0b80d4c82e 100644 (file)
@@ -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);