Made method names consistent with each other

This commit is contained in:
Robert Osfield 2009-06-17 15:12:50 +00:00
parent 29502d8d23
commit acf07b5b22
2 changed files with 5 additions and 3 deletions

View File

@ -35,7 +35,9 @@ class OSGDB_EXPORT FileList : public osg::Object
FileNames& getFileNames() { return _files; }
const FileNames& getFileNames() const { return _files; }
bool contains(const std::string& filename) const { return _files.count(filename)!=0; }
bool containsFile(const std::string& filename) const { return _files.count(filename)!=0; }
void addFile(const std::string& filename) { _files.insert(filename); }
bool removeFile(const std::string& filename);

View File

@ -76,8 +76,8 @@ bool DatabaseRevision::isFileBlackListed(const std::string& filename) const
_databasePath.empty() ? 0 : _databasePath.length()+1,
std::string::npos);
return (_filesRemoved.valid() && _filesRemoved->contains(localPath)) ||
(_filesModified.valid() && _filesModified->contains(localPath));
return (_filesRemoved.valid() && _filesRemoved->containsFile(localPath)) ||
(_filesModified.valid() && _filesModified->containsFile(localPath));
}