fix -Wignored-qualifiers
This commit is contained in:
@@ -333,7 +333,7 @@ void PropertyPartShape::SaveDocFile (Base::Writer &writer) const
|
||||
// we may run into some problems on the Linux platform
|
||||
static Base::FileInfo fi(App::Application::getTempFileName());
|
||||
|
||||
if (!BRepTools_Write(myShape,(const Standard_CString)fi.filePath().c_str())) {
|
||||
if (!BRepTools_Write(myShape,(Standard_CString)fi.filePath().c_str())) {
|
||||
// Note: Do NOT throw an exception here because if the tmp. file could
|
||||
// not be created we should not abort.
|
||||
// We only print an error message but continue writing the next files to the
|
||||
@@ -412,7 +412,7 @@ void PropertyPartShape::RestoreDocFile(Base::Reader &reader)
|
||||
// If it's still empty after reading the (non-empty) file there must occurred an error.
|
||||
TopoDS_Shape shape;
|
||||
if (ulSize > 0) {
|
||||
if (!BRepTools::Read(shape, (const Standard_CString)fi.filePath().c_str(), builder)) {
|
||||
if (!BRepTools::Read(shape, (Standard_CString)fi.filePath().c_str(), builder)) {
|
||||
// Note: Do NOT throw an exception here because if the tmp. created file could
|
||||
// not be read it's NOT an indication for an invalid input stream 'reader'.
|
||||
// We only print an error message but continue reading the next files from the
|
||||
|
||||
Reference in New Issue
Block a user