Fix build: use std::ios::out|ios::trunc instead of std::ios_base::out
Alex
This commit is contained in:
parent
678e124481
commit
1879bcc09c
|
@ -245,7 +245,7 @@ void cmQtAutomoc::WriteOldMocDefinitionsFile(const char* targetDirectory)
|
||||||
|
|
||||||
std::fstream outfile;
|
std::fstream outfile;
|
||||||
outfile.open(filename.c_str(),
|
outfile.open(filename.c_str(),
|
||||||
std::ios_base::out | std::ios_base::trunc);
|
std::ios::out | std::ios::trunc);
|
||||||
outfile << "set(AM_OLD_MOC_DEFINITIONS \""
|
outfile << "set(AM_OLD_MOC_DEFINITIONS \""
|
||||||
<< this->Join(this->MocDefinitions, ' ') << "\")\n";
|
<< this->Join(this->MocDefinitions, ' ') << "\")\n";
|
||||||
|
|
||||||
|
@ -477,7 +477,7 @@ bool cmQtAutomoc::RunAutomocQt4()
|
||||||
// source file that includes all remaining moc files (_automoc.cpp file)
|
// source file that includes all remaining moc files (_automoc.cpp file)
|
||||||
std::fstream outfile;
|
std::fstream outfile;
|
||||||
outfile.open(this->OutMocCppFilename.c_str(),
|
outfile.open(this->OutMocCppFilename.c_str(),
|
||||||
std::ios_base::out | std::ios_base::trunc);
|
std::ios::out | std::ios::trunc);
|
||||||
outfile << automocSource;
|
outfile << automocSource;
|
||||||
outfile.close();
|
outfile.close();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue