aboutsummaryrefslogtreecommitdiff
path: root/saga/list.h
diff options
context:
space:
mode:
authorAndrew Kurushin2004-12-16 21:30:06 +0000
committerAndrew Kurushin2004-12-16 21:30:06 +0000
commitaf5996f99a674fd5416770f25f196fdb2f5873ad (patch)
treef5e5439d1ed9104765846cfdb183bbeb742d3707 /saga/list.h
parentc1810c8de24cfb05b825f45f24ca7a880dc0a375 (diff)
downloadscummvm-rg350-af5996f99a674fd5416770f25f196fdb2f5873ad.tar.gz
scummvm-rg350-af5996f99a674fd5416770f25f196fdb2f5873ad.tar.bz2
scummvm-rg350-af5996f99a674fd5416770f25f196fdb2f5873ad.zip
trying remove CRLF
svn-id: r16088
Diffstat (limited to 'saga/list.h')
-rw-r--r--saga/list.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/saga/list.h b/saga/list.h
index 397717c55c..4038c0f2fb 100644
--- a/saga/list.h
+++ b/saga/list.h
@@ -21,22 +21,18 @@
#ifndef SAGA_LIST_H__
#define SAGA_LIST_H__
-
#include "common/list.h"
namespace Saga {
-
template <class T>
class SortedList : public Common::List<T> {
public:
typedef int ( CompareFunction ) (const T& , const T&);
-
typedef typename Common::List<T>::iterator iterator;
typedef typename Common::List<T>::const_iterator const_iterator;
public:
-
iterator pushFront(const T& element) {
return insert(Common::List<T>::begin(), element);
}
@@ -91,7 +87,6 @@ public:
while (i != Common::List<T>::end()) {
res = compareFunction(i.operator*(), pos.operator*());
if (res <= 0) {
-
T temp(*pos);
erase(pos);
++i;
@@ -110,7 +105,6 @@ public:
while (i != Common::List<T>::end()) {
res = compareFunction(i.operator*(), pos.operator*());
if (res >= 0) {
-
T temp(*pos);
erase(pos);
return insert(i, temp);
@@ -149,6 +143,5 @@ public:
return false;
}
};
-
} // End of namespace Saga
#endif \ No newline at end of file