Added const to operators.

This commit is contained in:
Robert Osfield 2007-12-12 10:47:58 +00:00
parent afdd141d73
commit 6ca74544bc

View File

@ -68,19 +68,19 @@ namespace osgDB {
struct CompareStateAttributes
{
bool operator()(const osg::ref_ptr<osg::StateAttribute>& lhs,
const osg::ref_ptr<osg::StateAttribute>& rhs)
{
return *lhs < *rhs;
}
const osg::ref_ptr<osg::StateAttribute>& rhs) const
{
return *lhs < *rhs;
}
};
struct CompareStateSets
{
bool operator()(const osg::ref_ptr<osg::StateSet>& lhs,
const osg::ref_ptr<osg::StateSet>& rhs)
{
return lhs->compare(*rhs, true) < 0;
}
const osg::ref_ptr<osg::StateSet>& rhs) const
{
return lhs->compare(*rhs, true) < 0;
}
};
// Lists of shared objects