Ensure that names of saved XPMs are valid C identifiers.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Jul 2012 11:42:43 +0000 (11:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 11 Jul 2012 11:42:43 +0000 (11:42 +0000)
commit8b23d3b067e126c3d595316bbe6cd113857303bf
treee426357e2de8073a66b6d315db8f648ef75ab73c
parent4f7222ca3632e40ad8f77947dba6bced63733655
Ensure that names of saved XPMs are valid C identifiers.

The name of the XPM should be based on the file name but can't always be
exactly equal to it as it's possible (and relatively common, e.g.
"foo-24.xpm") to have characters forbidden in identifiers to appear in the
file names. Ensure that we use a valid C identifier here.

Closes #13905.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/imagxpm.cpp