aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMax Horn2008-09-11 09:25:13 +0000
committerMax Horn2008-09-11 09:25:13 +0000
commit14ac01a11a3c0179ec6b190111ff115fcfacb403 (patch)
treede464b437238a1aefdb17a2e0c9d394cb3deebfb /backends
parent25d79f8918810b66748bfc4cebb85a66ea758f15 (diff)
downloadscummvm-rg350-14ac01a11a3c0179ec6b190111ff115fcfacb403.tar.gz
scummvm-rg350-14ac01a11a3c0179ec6b190111ff115fcfacb403.tar.bz2
scummvm-rg350-14ac01a11a3c0179ec6b190111ff115fcfacb403.zip
Simplify check for a slash in the string *g*
svn-id: r34485
Diffstat (limited to 'backends')
-rw-r--r--backends/fs/posix/posix-fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/fs/posix/posix-fs.cpp b/backends/fs/posix/posix-fs.cpp
index 9a99b50503..dd11bc4d21 100644
--- a/backends/fs/posix/posix-fs.cpp
+++ b/backends/fs/posix/posix-fs.cpp
@@ -92,7 +92,7 @@ AbstractFilesystemNode *POSIXFilesystemNode::getChild(const Common::String &n) c
assert(_isDirectory);
// Make sure the string contains no slashes
- assert(Common::find(n.begin(), n.end(), '/') == n.end());
+ assert(!n.contains('/'));
// We assume here that _path is already normalized (hence don't bother to call
// Common::normalizePath on the final path).