Added const when writing XPMs to avoid gcc warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-05-07 07:29:13 +00:00
parent 4f29051b4e
commit 90e4fb5d04

View File

@@ -129,9 +129,9 @@ bool wxXPMHandler::SaveFile(wxImage * image,
} }
if ( !sName.empty() ) if ( !sName.empty() )
sName = wxString(wxT("/* XPM */\nstatic char *")) + sName; sName = wxString(wxT("/* XPM */\nstatic const char *")) + sName;
else else
sName = wxT("/* XPM */\nstatic char *xpm_data"); sName = wxT("/* XPM */\nstatic const char *xpm_data");
stream.Write( (const char*) sName.ToAscii(), sName.Len() ); stream.Write( (const char*) sName.ToAscii(), sName.Len() );
char tmpbuf[200]; char tmpbuf[200];