summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-11-14 18:11:22 +0100
committerSebastian Geerken <devnull@localhost>2014-11-14 18:11:22 +0100
commitd6210add0244512b1dee53fd15b734a1ee980791 (patch)
treec3f98e0490db0b084ca7c45c30a8bb251cf1cc19
parented41bc460ab98bbcd05ce1e63b7aad418082b0be (diff)
Fixed bug in (unused) Vector<T>::insertSorted().
-rw-r--r--lout/container.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/lout/container.hh b/lout/container.hh
index f8c22439..3051970e 100644
--- a/lout/container.hh
+++ b/lout/container.hh
@@ -432,9 +432,9 @@ public:
{ ((untyped::Vector*)this->base)->put(newElement, newPos); }
inline void insert(T *newElement, int pos)
{ ((untyped::Vector*)this->base)->insert(newElement, pos); }
- inline bool insertSorted(T *newElement,
- object::Comparator *comparator =
- &object::standardComparator)
+ inline int insertSorted(T *newElement,
+ object::Comparator *comparator =
+ &object::standardComparator)
{ return ((untyped::Vector*)this->base)->insertSorted(newElement,
comparator); }
inline void remove(int pos) { ((untyped::Vector*)this->base)->remove(pos); }