[Scummvm-cvs-logs] SF.net SVN: scummvm: [30819] scummvm/trunk/engines/saga/list.h

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Thu Feb 7 23:53:24 CET 2008


Revision: 30819
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30819&view=rev
Author:   fingolfin
Date:     2008-02-07 14:53:23 -0800 (Thu, 07 Feb 2008)

Log Message:
-----------
Fix code formatting and grammar ;)

Modified Paths:
--------------
    scummvm/trunk/engines/saga/list.h

Modified: scummvm/trunk/engines/saga/list.h
===================================================================
--- scummvm/trunk/engines/saga/list.h	2008-02-07 21:28:51 UTC (rev 30818)
+++ scummvm/trunk/engines/saga/list.h	2008-02-07 22:53:23 UTC (rev 30819)
@@ -97,7 +97,6 @@
 		while (i != Common::List<T>::end()) {
 			res = compareFunction(i.operator*(), pos.operator*());
 			if (res <= 0) {
-
 				T temp(*pos);
 				erase(pos);
 				++i;
@@ -116,7 +115,6 @@
 		while (i != Common::List<T>::end()) {
 			res = compareFunction(i.operator*(), pos.operator*());
 			if (res >= 0) {
-
 				T temp(*pos);
 				erase(pos);
 				return insert(i, temp);
@@ -143,12 +141,11 @@
 			}
 	}
 
-	bool locate(const T* val, iterator& foundedIterator) {
+	bool locate(const T* val, iterator& foundIterator) {
 
 		for (iterator i = Common::List<T>::begin(); i != Common::List<T>::end(); ++i)
-			if (val == i.operator->())
-			{
-				foundedIterator = i;
+			if (val == i.operator->()) {
+				foundIterator = i;
 				return true;
 			}
 


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