From 356ae3b9ce8b28b50e1f3df8c45bddeb861cd45a Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 7 Feb 2008 22:53:23 +0000 Subject: Fix code formatting and grammar ;) svn-id: r30819 --- engines/saga/list.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'engines') 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::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::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::begin(); i != Common::List::end(); ++i) - if (val == i.operator->()) - { - foundedIterator = i; + if (val == i.operator->()) { + foundIterator = i; return true; } -- cgit v1.2.3