]> git.saurik.com Git - wxWidgets.git/commitdiff
SetStringSelection: wxString& should be const
authorDavid Elliott <dfe@tgwbd.org>
Tue, 15 Jul 2003 15:10:24 +0000 (15:10 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Tue, 15 Jul 2003 15:10:24 +0000 (15:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/combobox.h
src/cocoa/combobox.mm

index 3ac38165e409e2d7c73bd21bfb20b5ae3bd6891e..2b665585d335e9d5d3fa38c920b34483550e6090 100644 (file)
@@ -63,7 +63,8 @@ public:
     virtual void SetSelection(int);
     // Overlapping methods
     virtual wxString GetStringSelection();
     virtual void SetSelection(int);
     // Overlapping methods
     virtual wxString GetStringSelection();
-    virtual void SetStringSelection(wxString& selection);
+    // other methods
+    virtual void SetStringSelection(const wxString& selection);
     // wxItemContainer
     virtual void Clear();
     virtual void Delete(int);
     // wxItemContainer
     virtual void Clear();
     virtual void Delete(int);
index 4101d8f3d5b199e4c779ba272b5d5e1d5f2b13b3..eb3f4b104f705f97c60ae898d6a200c66dfa9de9 100644 (file)
@@ -63,7 +63,7 @@ wxString wxComboBox::GetStringSelection()
     return wxEmptyString;
 }
 
     return wxEmptyString;
 }
 
-void wxComboBox::SetStringSelection(wxString& selection)
+void wxComboBox::SetStringSelection(const wxString& selection)
 {
 }
 
 {
 }