From: Jaakko Salli Date: Thu, 6 May 2010 17:42:26 +0000 (+0000) Subject: Change wxPGProperty::SetChoices() to accept 'const wxPGChoices&' X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/75ac0891d8cc8d20f17dd8f531ac2058ee7a6fb5 Change wxPGProperty::SetChoices() to accept 'const wxPGChoices&' git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index 5e0afbf884..f4ddde3f80 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -2141,7 +2141,7 @@ public: @remarks This operation deselects the property and clears its value. */ - bool SetChoices( wxPGChoices& choices ); + bool SetChoices( const wxPGChoices& choices ); /** Set max length of text in text editor. */ diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp index 36b9f47bd5..bfa70e3838 100644 --- a/src/propgrid/property.cpp +++ b/src/propgrid/property.cpp @@ -1911,7 +1911,7 @@ void wxPGProperty::SetChoiceSelection( int newValue ) } } -bool wxPGProperty::SetChoices( wxPGChoices& choices ) +bool wxPGProperty::SetChoices( const wxPGChoices& choices ) { // Property must be de-selected first (otherwise choices in // the control would be de-synced with true choices)