]> git.saurik.com Git - wxWidgets.git/commitdiff
String formatting fixes
authorJulian Smart <julian@anthemion.co.uk>
Wed, 18 Jul 2012 14:04:34 +0000 (14:04 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 18 Jul 2012 14:04:34 +0000 (14:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextxml.cpp

index 4157ec55057a2e90abd97e5e1c17a4bf928acc6a..263ea7f58ba6abe048862b7aa25348bc71a2eca8 100644 (file)
@@ -875,7 +875,7 @@ bool wxRichTextXMLHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream&
 
     wxString s ;
     s.Printf(wxT("<?xml version=\"%s\" encoding=\"%s\"?>\n"),
-             version, fileEncoding);
+             version.c_str(), fileEncoding.c_str());
     OutputString(stream, s);
     OutputString(stream, wxT("<richtext version=\"1.0.0.0\" xmlns=\"http://www.wxwidgets.org\">"));