rename method from remObject to removeObject to be more readable

This commit is contained in:
wmayer
2017-09-13 18:57:38 +02:00
parent 52ef3a5d19
commit 712966ff50
12 changed files with 17 additions and 17 deletions

View File

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

View File

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

View File

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

View File

@@ -95,7 +95,7 @@ public:
}
void execute()
{
doc->remObject(this->name.c_str());
doc->removeObject(this->name.c_str());
}
protected:

View File

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