Coverity issues:
129202: replace dynamic_cast with static_cast 129421, 129422: fix Py_Return macro 128928: Unchecked return value 129488, 129490: uninitialized scalar variable 129567, 129661: uninitialized scalar field 129665: uninitialized pointer field
This commit is contained in:
@@ -90,7 +90,7 @@ std::string PropertyFileIncluded::getDocTransientPath(void) const
|
||||
std::string path;
|
||||
PropertyContainer *co = getContainer();
|
||||
if (co->isDerivedFrom(DocumentObject::getClassTypeId())) {
|
||||
path = dynamic_cast<DocumentObject*>(co)->getDocument()->TransientDir.getValue();
|
||||
path = static_cast<DocumentObject*>(co)->getDocument()->TransientDir.getValue();
|
||||
std::replace(path.begin(), path.end(), '\\', '/');
|
||||
}
|
||||
return path;
|
||||
|
||||
Reference in New Issue
Block a user