[Scummvm-cvs-logs] SF.net SVN: scummvm:[46639] scummvm/trunk/common/algorithm.h
megath at users.sourceforge.net
megath at users.sourceforge.net
Sun Dec 27 14:25:07 CET 2009
Revision: 46639
http://scummvm.svn.sourceforge.net/scummvm/?rev=46639&view=rev
Author: megath
Date: 2009-12-27 13:25:07 +0000 (Sun, 27 Dec 2009)
Log Message:
-----------
added whitespace to conform code convention
Modified Paths:
--------------
scummvm/trunk/common/algorithm.h
Modified: scummvm/trunk/common/algorithm.h
===================================================================
--- scummvm/trunk/common/algorithm.h 2009-12-27 13:19:44 UTC (rev 46638)
+++ scummvm/trunk/common/algorithm.h 2009-12-27 13:25:07 UTC (rev 46639)
@@ -154,7 +154,7 @@
template<typename T>
unsigned distance(T first, T last) {
unsigned n = 0;
- while(first != last) {
+ while (first != last) {
++n;
++first;
}
@@ -170,7 +170,7 @@
T _sort_choose_pivot(T first, T last) {
unsigned n = distance(first, last);
n /= 2;
- while(n--)
+ while (n--)
++first;
return first;
}
@@ -181,7 +181,7 @@
SWAP(*pivot, *last);
T sorted;
- for(sorted = first; first != last; ++first) {
+ for (sorted = first; first != last; ++first) {
if (!comp(*last, *first)) {
if (first != sorted)
SWAP(*first, *sorted);
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