You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
24 lines
1.0 KiB
https://bugs.gentoo.org/788301
|
|
--- a/include/osgDB/ObjectCache
|
|
+++ b/include/osgDB/ObjectCache
|
|
@@ -72,7 +72,7 @@ class OSGDB_EXPORT ObjectCache : public osg::Referenced
|
|
|
|
class ClassComp {
|
|
public:
|
|
- bool operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs);
|
|
+ bool operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs) const;
|
|
};
|
|
|
|
typedef std::pair<osg::ref_ptr<osg::Object>, double > ObjectTimeStampPair;
|
|
--- a/src/osgDB/ObjectCache.cpp
|
|
+++ b/src/osgDB/ObjectCache.cpp
|
|
@@ -16,7 +16,7 @@
|
|
|
|
using namespace osgDB;
|
|
|
|
-bool ObjectCache::ClassComp::operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs)
|
|
+bool ObjectCache::ClassComp::operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs) const
|
|
{
|
|
// check if filename are the same
|
|
if (lhs.first < rhs.first) return true;
|