fix build failure on Windows due to removal of deprecated C++ header

This commit is contained in:
wmayer 2016-09-24 02:44:32 +02:00
parent 480191c8ee
commit 3339374f2c
3 changed files with 3 additions and 25 deletions

View File

@ -1260,19 +1260,8 @@ void FemMesh::SaveDocFile (Base::Writer &writer) const
Base::ifstream file(fi, std::ios::in | std::ios::binary);
if (file){
unsigned long ulSize = 0;
std::streambuf* buf = file.rdbuf();
if (buf) {
unsigned long ulCurr;
ulCurr = buf->pubseekoff(0, std::ios::cur, std::ios::in);
ulSize = buf->pubseekoff(0, std::ios::end, std::ios::in);
buf->pubseekoff(ulCurr, std::ios::beg, std::ios::in);
}
// read in the ASCII file and write back to the stream
std::strstreambuf sbuf(ulSize);
file >> &sbuf;
writer.Stream() << &sbuf;
writer.Stream() << buf;
}
file.close();

View File

@ -279,19 +279,8 @@ void PropertyPostDataObject::SaveDocFile (Base::Writer &writer) const
Base::ifstream file(fi, std::ios::in | std::ios::binary);
if (file){
unsigned long ulSize = 0;
std::streambuf* buf = file.rdbuf();
if (buf) {
unsigned long ulCurr;
ulCurr = buf->pubseekoff(0, std::ios::cur, std::ios::in);
ulSize = buf->pubseekoff(0, std::ios::end, std::ios::in);
buf->pubseekoff(ulCurr, std::ios::beg, std::ios::in);
}
// read in the ASCII file and write back to the stream
std::strstreambuf sbuf(ulSize);
file >> &sbuf;
writer.Stream() << &sbuf;
writer.Stream() << buf;
}
file.close();

View File

@ -1310,7 +1310,7 @@ CmdFemPostApllyChanges::CmdFemPostApllyChanges()
eType = eType|ForEdit;
}
void CmdFemPostApllyChanges::activated(int)
void CmdFemPostApllyChanges::activated(int iMsg)
{
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Fem");