X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2eaf6433f2e266c48f4ac3822a975c692255b88d..6362d82b3ed82aa6795e4ad03160820f94c9e4d4:/src/common/imagxpm.cpp diff --git a/src/common/imagxpm.cpp b/src/common/imagxpm.cpp index 7d02ebe372..5aa6dded43 100644 --- a/src/common/imagxpm.cpp +++ b/src/common/imagxpm.cpp @@ -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];