Added const to operators.
This commit is contained in:
parent
afdd141d73
commit
6ca74544bc
@ -68,7 +68,7 @@ namespace osgDB {
|
||||
struct CompareStateAttributes
|
||||
{
|
||||
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;
|
||||
}
|
||||
@ -77,7 +77,7 @@ namespace osgDB {
|
||||
struct CompareStateSets
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user