+ fixes #0002075: Analysis of FreeCAD by PVS-Studio static analyzer

This commit is contained in:
wmayer
2015-05-01 16:56:31 +02:00
parent d8f63bcfd1
commit dd2b39ddd6
21 changed files with 59 additions and 91 deletions

View File

@@ -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();

View File

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

View File

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