[Scummvm-cvs-logs] SF.net SVN: scummvm: [21599] scummvm/trunk/backends/fs/symbian/symbian-fs.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Apr 4 14:03:06 CEST 2006


Revision: 21599
Author:   fingolfin
Date:     2006-04-04 14:02:44 -0700 (Tue, 04 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21599&view=rev

Log Message:
-----------
Possible bug in the Symbian FS code?

Modified Paths:
--------------
    scummvm/trunk/backends/fs/symbian/symbian-fs.cpp
Modified: scummvm/trunk/backends/fs/symbian/symbian-fs.cpp
===================================================================
--- scummvm/trunk/backends/fs/symbian/symbian-fs.cpp	2006-04-04 21:01:26 UTC (rev 21598)
+++ scummvm/trunk/backends/fs/symbian/symbian-fs.cpp	2006-04-04 21:02:44 UTC (rev 21599)
@@ -58,12 +58,12 @@
 static const char *lastPathComponent(const Common::String &str) {
 	const char *start = str.c_str();
 	const char *cur = start + str.size() - 2;
-	
+
 	while (cur > start && *cur != '\\') {
 		--cur;
 	}
-	
-	return cur+1;
+
+	return cur + 1;
 }
 
 AbstractFilesystemNode *FilesystemNode::getRoot() {
@@ -88,6 +88,9 @@
 		_isPseudoRoot = true;
 	_path = path;
 	const char *dsplName = NULL, *pos = path.c_str();
+	// FIXME -- why is this code scanning for a slash '/' when the rest of
+	// the code in this file uses backslashes '\' ?
+	// TODO: Use lastPathComponent here.
 	while (*pos)
 		if (*pos++ == '/')
 			dsplName = pos;


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