projects
/
platform
/
upstream
/
libgee.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f84de1
)
Change return_if_fail into assert in remove_at of LinkedList.
author
Maciej Piechotka
<uzytkownik2@gmail.com>
Sat, 18 Sep 2010 08:10:05 +0000
(09:10 +0100)
committer
Maciej Piechotka
<uzytkownik2@gmail.com>
Sat, 18 Sep 2010 08:10:05 +0000
(09:10 +0100)
It fixes build issue described in bug #629933 and make the behavior
compatible with ArrayList.
gee/linkedlist.vala
patch
|
blob
|
history
diff --git
a/gee/linkedlist.vala
b/gee/linkedlist.vala
index
66e7082
..
b70569d
100644
(file)
--- a/
gee/linkedlist.vala
+++ b/
gee/linkedlist.vala
@@
-212,7
+212,7
@@
public class Gee.LinkedList<G> : AbstractList<G>, Queue<G>, Deque<G> {
assert (index < this._size);
unowned Node<G>? n = this._get_node_at (index);
-
return_if_fail
(n != null);
+
assert
(n != null);
G element = n.data;
this._remove_node (n);
return element;