[Scummvm-cvs-logs] SF.net SVN: scummvm:[34485] scummvm/trunk/backends/fs/posix/posix-fs.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Thu Sep 11 11:25:14 CEST 2008
Revision: 34485
http://scummvm.svn.sourceforge.net/scummvm/?rev=34485&view=rev
Author: fingolfin
Date: 2008-09-11 09:25:13 +0000 (Thu, 11 Sep 2008)
Log Message:
-----------
Simplify check for a slash in the string *g*
Modified Paths:
--------------
scummvm/trunk/backends/fs/posix/posix-fs.cpp
Modified: scummvm/trunk/backends/fs/posix/posix-fs.cpp
===================================================================
--- scummvm/trunk/backends/fs/posix/posix-fs.cpp 2008-09-10 20:47:58 UTC (rev 34484)
+++ scummvm/trunk/backends/fs/posix/posix-fs.cpp 2008-09-11 09:25:13 UTC (rev 34485)
@@ -92,7 +92,7 @@
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).
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list