From 14ac01a11a3c0179ec6b190111ff115fcfacb403 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 11 Sep 2008 09:25:13 +0000 Subject: Simplify check for a slash in the string *g* svn-id: r34485 --- backends/fs/posix/posix-fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends') 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). -- cgit v1.2.3