Made method names consistent with each other
This commit is contained in:
parent
29502d8d23
commit
acf07b5b22
@ -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);
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user