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:
parent
4f29051b4e
commit
90e4fb5d04
@ -129,9 +129,9 @@ bool wxXPMHandler::SaveFile(wxImage * image,
|
||||
}
|
||||
|
||||
if ( !sName.empty() )
|
||||
sName = wxString(wxT("/* XPM */\nstatic char *")) + sName;
|
||||
sName = wxString(wxT("/* XPM */\nstatic const char *")) + sName;
|
||||
else
|
||||
sName = wxT("/* XPM */\nstatic char *xpm_data");
|
||||
sName = wxT("/* XPM */\nstatic const char *xpm_data");
|
||||
stream.Write( (const char*) sName.ToAscii(), sName.Len() );
|
||||
|
||||
char tmpbuf[200];
|
||||
|
Loading…
Reference in New Issue
Block a user