diff options
author | Torbjörn Andersson | 2004-05-06 10:34:41 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-05-06 10:34:41 +0000 |
commit | 6d02fd9d74a759325ae2148a014383d1a107ad28 (patch) | |
tree | c3c776d804595c3a82db5f4176f51062e36a6660 /backends | |
parent | fe2f4382fbd97b40aaddf7bf470ec2a24b004ac5 (diff) | |
download | scummvm-rg350-6d02fd9d74a759325ae2148a014383d1a107ad28.tar.gz scummvm-rg350-6d02fd9d74a759325ae2148a014383d1a107ad28.tar.bz2 scummvm-rg350-6d02fd9d74a759325ae2148a014383d1a107ad28.zip |
Reverted the last commit (on this file only) because it broke compilation
of gui/browser.cpp. Besides, it didn't seem to have anything to do with
keycolor in OSystem. :-)
svn-id: r13801
Diffstat (limited to 'backends')
-rw-r--r-- | backends/fs/fs.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/backends/fs/fs.h b/backends/fs/fs.h index 15bd05c78f..8719c1d2bf 100644 --- a/backends/fs/fs.h +++ b/backends/fs/fs.h @@ -179,7 +179,14 @@ public: _data[i] = element.clone(); _size++; } - + + const FilesystemNode& operator [](int idx) const { + assert(idx >= 0 && idx < _size); + return *_data[idx]; + } + + int size() const { return _size; } + const_iterator begin() const { return const_iterator(_data); } |