+ fix clang warning: -Woverloaded-virtual

This commit is contained in:
wmayer
2015-10-02 20:42:16 +02:00
parent 17b076a0b3
commit 2acb38daa7
12 changed files with 36 additions and 36 deletions

View File

@@ -408,7 +408,7 @@ int PropertyConstraintList::getIndexFromConstraintName(const string &name)
return std::atoi(name.substr(10,4000).c_str()) - 1;
}
void PropertyConstraintList::setValue(const ObjectIdentifier &path, const boost::any &value)
void PropertyConstraintList::setPathValue(const ObjectIdentifier &path, const boost::any &value)
{
const ObjectIdentifier::Component & c0 = path.getPropertyComponent(0);
double dvalue;
@@ -464,7 +464,7 @@ const Constraint * PropertyConstraintList::getConstraint(const ObjectIdentifier
throw Base::Exception("Invalid constraint");
}
const boost::any PropertyConstraintList::getValue(const ObjectIdentifier &path) const
const boost::any PropertyConstraintList::getPathValue(const ObjectIdentifier &path) const
{
return boost::any(getConstraint(path)->getValue());
}

View File

@@ -103,8 +103,8 @@ public:
const Constraint *getConstraint(const App::ObjectIdentifier &path) const;
virtual void setValue(const App::ObjectIdentifier & path, const boost::any & value);
virtual const boost::any getValue(const App::ObjectIdentifier & path) const;
virtual void setPathValue(const App::ObjectIdentifier & path, const boost::any & value);
virtual const boost::any getPathValue(const App::ObjectIdentifier & path) const;
virtual const App::ObjectIdentifier canonicalPath(const App::ObjectIdentifier & p) const;
virtual void getPaths(std::vector<App::ObjectIdentifier> & paths) const;