From 1606607aa93e887e959cf52b3613b1fb56858329 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 9 Jan 2008 14:39:03 +0000 Subject: [PATCH] STL build compilation fix (remove useless cast of wxString to const wxChar*) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/dragimag/dragimag.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/samples/dragimag/dragimag.cpp b/samples/dragimag/dragimag.cpp index 88881823a3..31b3f4c2e0 100644 --- a/samples/dragimag/dragimag.cpp +++ b/samples/dragimag/dragimag.cpp @@ -385,15 +385,12 @@ bool MyApp::OnInit() wxString rootName(_T("shape0")); - int i; - for (i = 1; i < 4; i++) + for (int i = 1; i < 4; i++) { - wxString filename; - filename.Printf(wxT("%s%d.png"), (const wxChar*)rootName, i); /* For some reason under wxX11, the 2nd LoadFile in this loop fails, with a BadMatch inside CreateFromImage (inside ConvertToBitmap). This happens even if you copy the first file over the second file. */ - if (image.LoadFile(filename, wxBITMAP_TYPE_PNG)) + if (image.LoadFile(wxString::Format("%s%d.png", rootName, i), wxBITMAP_TYPE_PNG)) { DragShape* newShape = new DragShape(wxBitmap(image)); newShape->SetPosition(wxPoint(i*50, i*50)); -- 2.50.0