fix -Wignored-qualifiers

This commit is contained in:
wmayer
2018-08-19 12:38:57 +02:00
parent 4686f27f64
commit 557fee3dc6
10 changed files with 17 additions and 17 deletions

View File

@@ -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