Line 0
Link Here
|
|
|
1 |
diff --git a/include/osgDB/ObjectCache b/include/osgDB/ObjectCache |
2 |
index 01b3f05..0d8b5be 100644 |
3 |
--- a/include/osgDB/ObjectCache |
4 |
+++ b/include/osgDB/ObjectCache |
5 |
@@ -72,7 +72,7 @@ class OSGDB_EXPORT ObjectCache : public osg::Referenced |
6 |
|
7 |
class ClassComp { |
8 |
public: |
9 |
- bool operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs); |
10 |
+ bool operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs) const; |
11 |
}; |
12 |
|
13 |
typedef std::pair<osg::ref_ptr<osg::Object>, double > ObjectTimeStampPair; |
14 |
diff --git a/src/osgDB/ObjectCache.cpp b/src/osgDB/ObjectCache.cpp |
15 |
index 11ca07c..740aa2e 100644 |
16 |
--- a/src/osgDB/ObjectCache.cpp |
17 |
+++ b/src/osgDB/ObjectCache.cpp |
18 |
@@ -16,7 +16,7 @@ |
19 |
|
20 |
using namespace osgDB; |
21 |
|
22 |
-bool ObjectCache::ClassComp::operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs) |
23 |
+bool ObjectCache::ClassComp::operator() (const ObjectCache::FileNameOptionsPair& lhs, const ObjectCache::FileNameOptionsPair& rhs) const |
24 |
{ |
25 |
// check if filename are the same |
26 |
if (lhs.first < rhs.first) return true; |