]> git.saurik.com Git - wxWidgets.git/commitdiff
Needed to convert string variable's type from wxChar* to wxString because result...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 13 Sep 2008 19:35:52 +0000 (19:35 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 13 Sep 2008 19:35:52 +0000 (19:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/props.cpp

index 69b21d2580af2ff4e003c6ce0061ebbd47455485..20812ce956c5515782bef359fce718d59ff4ace9 100644 (file)
@@ -740,13 +740,13 @@ wxString wxBoolProperty::GetValueAsString( int argFlags ) const
             if ( argFlags & wxPG_UNEDITABLE_COMPOSITE_FRAGMENT )
                 return wxEmptyString;
 
-            const wxChar* notFmt;
+            wxString notFmt;
             if ( wxPGGlobalVars->m_autoGetTranslation )
                 notFmt = _("Not %s");
             else
-                notFmt = wxT("Not %s");
+                notFmt = wxS("Not %s");
 
-            return wxString::Format(notFmt,m_label.c_str());
+            return wxString::Format(notFmt.c_str(), m_label.c_str());
         }
     }