rename method from remObject to removeObject to be more readable
This commit is contained in:
@@ -184,7 +184,7 @@ void orthoview::set_data(int r_x, int r_y)
|
||||
|
||||
void orthoview::deleteme()
|
||||
{
|
||||
parent_doc->remObject(myname.c_str());
|
||||
parent_doc->removeObject(myname.c_str());
|
||||
}
|
||||
|
||||
void orthoview::setPos(float px, float py)
|
||||
|
||||
@@ -170,7 +170,7 @@ void TaskFemConstraint::onButtonWizCancel()
|
||||
{
|
||||
Fem::Constraint* pcConstraint = static_cast<Fem::Constraint*>(ConstraintView->getObject());
|
||||
if (pcConstraint != NULL)
|
||||
pcConstraint->getDocument()->remObject(pcConstraint->getNameInDocument());
|
||||
pcConstraint->getDocument()->removeObject(pcConstraint->getNameInDocument());
|
||||
onButtonWizOk();
|
||||
}
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ void TaskMultiTransformParameters::onTransformDelete()
|
||||
std::vector<App::DocumentObject*> transformFeatures = pcMultiTransform->Transformations.getValues();
|
||||
|
||||
App::DocumentObject* feature = transformFeatures[row];
|
||||
pcMultiTransform->getDocument()->remObject(feature->getNameInDocument());
|
||||
pcMultiTransform->getDocument()->removeObject(feature->getNameInDocument());
|
||||
closeSubTask();
|
||||
|
||||
transformFeatures.erase(transformFeatures.begin() + row);
|
||||
|
||||
@@ -95,7 +95,7 @@ public:
|
||||
}
|
||||
void execute()
|
||||
{
|
||||
doc->remObject(this->name.c_str());
|
||||
doc->removeObject(this->name.c_str());
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
@@ -424,7 +424,7 @@ int DrawProjGroup::removeProjection(const char *viewProjType)
|
||||
if( projPtr ) {
|
||||
if ( strcmp(viewProjType, projPtr->Type.getValueAsString()) == 0 ) {
|
||||
removeView(projPtr); // Remove from collection
|
||||
getDocument()->remObject( it->getNameInDocument() ); // Remove from the document
|
||||
getDocument()->removeObject( it->getNameInDocument() ); // Remove from the document
|
||||
moveToCentre();
|
||||
return Views.getValues().size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user