+ fixes #0002075: Analysis of FreeCAD by PVS-Studio static analyzer
This commit is contained in:
@@ -516,7 +516,7 @@ bool FileInfo::deleteDirectoryRecursive(void) const
|
||||
It->deleteFile();
|
||||
}
|
||||
else {
|
||||
Base::Exception("FileInfo::deleteDirectoryRecursive(): Unknown object Type in directory!");
|
||||
throw Base::FileException("FileInfo::deleteDirectoryRecursive(): Unknown object Type in directory!");
|
||||
}
|
||||
}
|
||||
return deleteDirectory();
|
||||
|
||||
@@ -219,7 +219,7 @@ int __cdecl MemDebug::sAllocHook(
|
||||
if ( pvData != NULL )
|
||||
fprintf( logFile, " at %p\n", pvData );
|
||||
else
|
||||
fprintf( logFile, "\n", pvData );
|
||||
fprintf( logFile, "\n" );
|
||||
|
||||
return( 7 ); // Allow the memory operation to proceed (True = 7, False = 0)
|
||||
}
|
||||
|
||||
@@ -257,7 +257,6 @@ Rotation & Rotation::invert(void)
|
||||
this->quat[0] = -this->quat[0];
|
||||
this->quat[1] = -this->quat[1];
|
||||
this->quat[2] = -this->quat[2];
|
||||
this->quat[3] = this->quat[3];
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user