]> git.saurik.com Git - wxWidgets.git/commitdiff
Change wxPGProperty::SetChoices() to accept 'const wxPGChoices&'
authorJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 6 May 2010 17:42:26 +0000 (17:42 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 6 May 2010 17:42:26 +0000 (17:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/propgrid/property.h
src/propgrid/property.cpp

index 5e0afbf884d240bce5d4dadef1ac0f90896bb696..f4ddde3f80dacc6c88d41a90caf3b92c54f12f99 100644 (file)
@@ -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.
     */
index 36b9f47bd546c6101207104b48d6ca964551c65f..bfa70e38386b853ae4918c977f3f7e994ef3d1c3 100644 (file)
@@ -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)