Base: Rename Base::freecad_dynamic_cast into freecad_cast
This is to make it shorter and easier to use. QT does the same thing with their qobject_cast.
This commit is contained in:
committed by
Chris Hennes
parent
307a4661af
commit
35a9673a75
@@ -159,7 +159,7 @@ public:
|
||||
void newObject(const ViewProvider& vp)
|
||||
{
|
||||
auto vpd =
|
||||
Base::freecad_dynamic_cast<ViewProviderDocumentObject>(const_cast<ViewProvider*>(&vp));
|
||||
freecad_cast<ViewProviderDocumentObject>(const_cast<ViewProvider*>(&vp));
|
||||
if (vpd && vpd->getObject()) {
|
||||
map[vpd->getObject()] = vpd;
|
||||
}
|
||||
@@ -167,7 +167,7 @@ public:
|
||||
void deleteObject(const ViewProvider& vp)
|
||||
{
|
||||
auto vpd =
|
||||
Base::freecad_dynamic_cast<ViewProviderDocumentObject>(const_cast<ViewProvider*>(&vp));
|
||||
freecad_cast<ViewProviderDocumentObject>(const_cast<ViewProvider*>(&vp));
|
||||
if (vpd && vpd->getObject()) {
|
||||
map.erase(vpd->getObject());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user