Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
This commit is contained in:
@@ -78,7 +78,7 @@ std::string PropertyFileIncluded::getDocTransientPath() const
|
||||
{
|
||||
std::string path;
|
||||
PropertyContainer* co = getContainer();
|
||||
if (co->isDerivedFrom(DocumentObject::getClassTypeId())) {
|
||||
if (co->isDerivedFrom<DocumentObject>()) {
|
||||
path = static_cast<DocumentObject*>(co)->getDocument()->TransientDir.getValue();
|
||||
std::replace(path.begin(), path.end(), '\\', '/');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user