aboutsummaryrefslogtreecommitdiff
path: root/saga/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'saga/list.h')
-rw-r--r--saga/list.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/saga/list.h b/saga/list.h
index 619060cf2f..397717c55c 100644
--- a/saga/list.h
+++ b/saga/list.h
@@ -34,7 +34,7 @@ public:
typedef typename Common::List<T>::iterator iterator;
typedef typename Common::List<T>::const_iterator const_iterator;
-
+
public:
iterator pushFront(const T& element) {
@@ -83,7 +83,7 @@ public:
return pushBack(element);
}
- void reorderUp(iterator pos, CompareFunction* compareFunction) {
+ iterator reorderUp(iterator pos, CompareFunction* compareFunction) {
iterator i(pos);
int res;
@@ -94,15 +94,15 @@ public:
T temp(*pos);
erase(pos);
- ++i;
- Common::List<T>::insert(i, temp);
- return;
+ ++i;
+ return insert(i, temp);
}
--i;
}
+ return pos;
}
- void reorderDown(iterator pos, CompareFunction* compareFunction) {
+ iterator reorderDown(iterator pos, CompareFunction* compareFunction) {
iterator i(pos);
int res;
@@ -113,11 +113,11 @@ public:
T temp(*pos);
erase(pos);
- Common::List<T>::insert(i, temp);
- return;
+ return insert(i, temp);
}
++i;
}
+ return pos;
}
iterator eraseAndPrev(iterator pos) {
@@ -151,4 +151,4 @@ public:
};
} // End of namespace Saga
-#endif
+#endif \ No newline at end of file