fix build failure on Windows due to removal of deprecated C++ header
This commit is contained in:
parent
480191c8ee
commit
3339374f2c
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user