aboutsummaryrefslogtreecommitdiff
path: root/common/list.h
diff options
context:
space:
mode:
authorJordi Vilalta Prat2008-01-27 19:47:41 +0000
committerJordi Vilalta Prat2008-01-27 19:47:41 +0000
commit66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985 (patch)
treee27aadabecd8dd910884280e6559ff9c94c3d73c /common/list.h
parent278857698dc7b1623096fe1ad12511dc4c886c7e (diff)
downloadscummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.tar.gz
scummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.tar.bz2
scummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.zip
Removed trailing spaces.
svn-id: r30664
Diffstat (limited to 'common/list.h')
-rw-r--r--common/list.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/common/list.h b/common/list.h
index 4ece453711..08b964eddf 100644
--- a/common/list.h
+++ b/common/list.h
@@ -31,7 +31,7 @@ namespace Common {
/**
* Simple double linked list, modeled after the list template of the standard
- * C++ library.
+ * C++ library.
*/
template <class t_T>
class List {
@@ -44,11 +44,11 @@ public:
NodeBase *_prev;
NodeBase *_next;
};
-
+
template <class t_T2>
struct Node : public NodeBase {
t_T2 _data;
-
+
Node(const t_T2 &x) : _data(x) {}
};
@@ -101,11 +101,11 @@ public:
t_T2* operator->() const {
return &(operator*());
}
-
+
bool operator==(const Iterator<t_T2>& x) const {
return _node == x._node;
}
-
+
bool operator!=(const Iterator<t_T2>& x) const {
return _node != x._node;
}
@@ -148,7 +148,7 @@ public:
void insert(iterator pos, const t_T& element) {
NodeBase *newNode = new Node<t_T>(element);
-
+
newNode->_next = pos._node;
newNode->_prev = pos._node->_prev;
newNode->_prev->_next = newNode;
@@ -216,7 +216,7 @@ public:
else
erase(i, end());
}
-
+
return *this;
}
@@ -230,8 +230,8 @@ public:
void clear() {
erase(begin(), end());
}
-
- bool empty() const {
+
+ bool empty() const {
return (_anchor == _anchor->_next);
}