Change .wc_str() to .char_str() to fix unix build breakage, should be fine on windows..

Originally committed to SVN as r3268.
This commit is contained in:
Amar Takhar 2009-07-25 08:01:30 +00:00
parent a0099e7f74
commit 2522102465
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ int main(int argc, const char *argv[]) {
} }
wxFileName headerFileName(argv[1]); wxFileName headerFileName(argv[1]);
headerFileName.SetExt(L"h"); headerFileName.SetExt(L"h");
ofstream outH(headerFileName.GetFullPath().wc_str()); ofstream outH(headerFileName.GetFullPath().char_str());
ofstream outC(argv[1]); ofstream outC(argv[1]);
outC << "/* This is an automatically generated file and should not be modified directly */" << endl; outC << "/* This is an automatically generated file and should not be modified directly */" << endl;
@ -127,7 +127,7 @@ int main(int argc, const char *argv[]) {
FileIterator iter(argc, argv); FileIterator iter(argc, argv);
while (iter.Next(&filename)) { while (iter.Next(&filename)) {
ifstream infile(filename.wc_str(), ios::binary); ifstream infile(filename.char_str(), ios::binary);
wxFileName file(filename); wxFileName file(filename);
wxString identifier = file.GetName() + "_" + file.GetDirs().Last(); wxString identifier = file.GetName() + "_" + file.GetDirs().Last();
nameCleaner.ReplaceAll(&identifier, "_"); nameCleaner.ReplaceAll(&identifier, "_");