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,7 +68,7 @@ namespace osgDB {
struct CompareStateAttributes struct CompareStateAttributes
{ {
bool operator()(const osg::ref_ptr<osg::StateAttribute>& lhs, bool operator()(const osg::ref_ptr<osg::StateAttribute>& lhs,
const osg::ref_ptr<osg::StateAttribute>& rhs) const osg::ref_ptr<osg::StateAttribute>& rhs) const
{ {
return *lhs < *rhs; return *lhs < *rhs;
} }
@ -77,7 +77,7 @@ namespace osgDB {
struct CompareStateSets struct CompareStateSets
{ {
bool operator()(const osg::ref_ptr<osg::StateSet>& lhs, bool operator()(const osg::ref_ptr<osg::StateSet>& lhs,
const osg::ref_ptr<osg::StateSet>& rhs) const osg::ref_ptr<osg::StateSet>& rhs) const
{ {
return lhs->compare(*rhs, true) < 0; return lhs->compare(*rhs, true) < 0;
} }