]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixes to function signatures in wxDataViewCtrl documentation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Mar 2012 23:41:09 +0000 (23:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Mar 2012 23:41:09 +0000 (23:41 +0000)
Change the return type of {Append,Insert,Prepend}Column() to bool and add
missing "const" to Compare().

Closes #14089.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/dataview.h

index bcd05e3cacb270eeddd00df918a7fe16e8079bab..24ba8f8a466b50a7b7415feebacc9b06f3e06a86 100644 (file)
@@ -373,7 +373,7 @@ public:
     */
     int Compare(const wxDataViewItem& item1,
                 const wxDataViewItem& item2,
-                unsigned int column, bool ascending);
+                unsigned int column, bool ascending) const;
 
     /**
         Override this to indicate that the row has special font attributes.
@@ -2195,7 +2195,7 @@ public:
         Appends a column to the control and additionally appends a
         column to the store with the type string.
     */
-    virtual void AppendColumn( wxDataViewColumn *column );
+    virtual bool AppendColumn( wxDataViewColumn *column );
 
     /**
         Appends a column to the control and additionally appends a
@@ -2251,7 +2251,7 @@ public:
         Inserts a column to the control and additionally inserts a
         column to the store with the type string.
     */
-    virtual void InsertColumn( unsigned int pos, wxDataViewColumn *column );
+    virtual bool InsertColumn( unsigned int pos, wxDataViewColumn *column );
 
     /**
         Inserts a column to the control and additionally inserts a
@@ -2264,7 +2264,7 @@ public:
         Prepends a column to the control and additionally prepends a
         column to the store with the type string.
     */
-    virtual void PrependColumn( wxDataViewColumn *column );
+    virtual bool PrependColumn( wxDataViewColumn *column );
 
     /**
         Prepends a column to the control and additionally prepends a