diff options
author | Max Horn | 2005-05-10 22:56:25 +0000 |
---|---|---|
committer | Max Horn | 2005-05-10 22:56:25 +0000 |
commit | b75c969e666b9f262a05e0d1e54d56f7d3e45441 (patch) | |
tree | e4868d14ac249a63e01f905472ec9be69f04a028 /common/file.cpp | |
parent | 55c37c18ceed916eb3744666d3d10783b0cf8783 (diff) | |
download | scummvm-rg350-b75c969e666b9f262a05e0d1e54d56f7d3e45441.tar.gz scummvm-rg350-b75c969e666b9f262a05e0d1e54d56f7d3e45441.tar.bz2 scummvm-rg350-b75c969e666b9f262a05e0d1e54d56f7d3e45441.zip |
Moved class File and the MD5 stuff to namespace Common
svn-id: r18037
Diffstat (limited to 'common/file.cpp')
-rw-r--r-- | common/file.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/common/file.cpp b/common/file.cpp index 7f948f7bc7..7128796623 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -22,8 +22,9 @@ #include "common/file.h" #include "common/util.h" +namespace Common { -Common::StringList File::_defaultDirectories; +StringList File::_defaultDirectories; static FILE *fopenNoCase(const char *filename, const char *directory, const char *mode) { @@ -99,7 +100,7 @@ static FILE *fopenNoCase(const char *filename, const char *directory, const char return file; } -void File::addDefaultDirectory(const Common::String &directory) { +void File::addDefaultDirectory(const String &directory) { _defaultDirectories.push_back(directory); } @@ -153,7 +154,7 @@ bool File::open(const char *filename, AccessMode mode, const char *directory) { if (mode == kFileWriteMode || directory) { _handle = fopenNoCase(filename, directory ? directory : "", modeStr); } else { - Common::StringList::const_iterator x; + StringList::const_iterator x; // Try all default directories for (x = _defaultDirectories.begin(); _handle == NULL && x != _defaultDirectories.end(); ++x) { _handle = fopenNoCase(filename, x->c_str(), modeStr); @@ -282,3 +283,5 @@ uint32 File::write(const void *ptr, uint32 len) { return len; } + +} // End of namespace Common |