From 6ca74544bcc8d3fe6d6d8f7a00d44e857b77f57d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 12 Dec 2007 10:47:58 +0000 Subject: [PATCH] Added const to operators. --- include/osgDB/SharedStateManager | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/osgDB/SharedStateManager b/include/osgDB/SharedStateManager index 9e5e8ef4b..10a3c1f58 100644 --- a/include/osgDB/SharedStateManager +++ b/include/osgDB/SharedStateManager @@ -68,19 +68,19 @@ namespace osgDB { struct CompareStateAttributes { bool operator()(const osg::ref_ptr& lhs, - const osg::ref_ptr& rhs) - { - return *lhs < *rhs; - } + const osg::ref_ptr& rhs) const + { + return *lhs < *rhs; + } }; struct CompareStateSets { bool operator()(const osg::ref_ptr& lhs, - const osg::ref_ptr& rhs) - { - return lhs->compare(*rhs, true) < 0; - } + const osg::ref_ptr& rhs) const + { + return lhs->compare(*rhs, true) < 0; + } }; // Lists of shared objects