fix -Wextra in Part

This commit is contained in:
wmayer
2016-09-22 11:49:28 +02:00
parent 40c79f18e4
commit 1ce73dda96
38 changed files with 129 additions and 64 deletions

View File

@@ -44,7 +44,7 @@ BodyBase::BodyBase()
ADD_PROPERTY(BaseFeature , (0) );
}
const bool BodyBase::hasFeature(const App::DocumentObject* f) const
bool BodyBase::hasFeature(const App::DocumentObject* f) const
{
const std::vector<App::DocumentObject*> &features = Model.getValues();
return f == BaseFeature.getValue() || std::find(features.begin(), features.end(), f) != features.end();
@@ -65,7 +65,7 @@ BodyBase* BodyBase::findBodyOf(const App::DocumentObject* f)
return NULL;
}
const bool BodyBase::isAfter(const App::DocumentObject *feature, const App::DocumentObject* target) const {
bool BodyBase::isAfter(const App::DocumentObject *feature, const App::DocumentObject* target) const {
assert (feature);
if (feature == target) {