aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMax Horn2008-02-07 22:53:23 +0000
committerMax Horn2008-02-07 22:53:23 +0000
commit356ae3b9ce8b28b50e1f3df8c45bddeb861cd45a (patch)
tree9af345caaf89a61bdab38e7ed6c611ffab4e0874 /engines
parent56c5d86431eff7a0e685ef947006e4db97d57107 (diff)
downloadscummvm-rg350-356ae3b9ce8b28b50e1f3df8c45bddeb861cd45a.tar.gz
scummvm-rg350-356ae3b9ce8b28b50e1f3df8c45bddeb861cd45a.tar.bz2
scummvm-rg350-356ae3b9ce8b28b50e1f3df8c45bddeb861cd45a.zip
Fix code formatting and grammar ;)
svn-id: r30819
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/list.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/saga/list.h b/engines/saga/list.h
index 15f115c77f..11948ca7af 100644
--- a/engines/saga/list.h
+++ b/engines/saga/list.h
@@ -97,7 +97,6 @@ public:
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 @@ 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);
@@ -143,12 +141,11 @@ public:
}
}
- 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;
}