]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed a VC6 warning (hopefully)
authorJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 23 Dec 2008 15:33:28 +0000 (15:33 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 23 Dec 2008 15:33:28 +0000 (15:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/advprops.cpp

index 5c5a2e99fa81f9551ca567dbd08d325ad019c5ad..83d392b3102ddda516e10aee58a061d537d9e442 100644 (file)
@@ -1904,7 +1904,8 @@ void wxMultiChoiceProperty::GenerateValueAsString( wxVariant& value,
 
 wxArrayInt wxMultiChoiceProperty::GetValueAsIndices() const
 {
-    const wxArrayInt& valueArr = wxArrayIntRefFromVariant(GetValue());
+    wxVariant variant = GetValue();
+    const wxArrayInt& valueArr = wxArrayIntRefFromVariant(variant);
     unsigned int i;
 
     // Translate values to string indices.