* Minor cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26712 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-08-01 09:57:14 +00:00
parent e6f3de9a29
commit aaad303e67
2 changed files with 4 additions and 6 deletions
+1 -2
View File
@@ -180,8 +180,7 @@ void
SINGLY_LINKED_LIST_CLASS_NAME::Add(Element* element) SINGLY_LINKED_LIST_CLASS_NAME::Add(Element* element)
{ {
if (element != NULL) { if (element != NULL) {
Link* link = sGetLink(element); sGetLink(element)->next = fFirst;
link->next = fFirst;
fFirst = element; fFirst = element;
} }
} }
@@ -174,8 +174,7 @@ void
SINGLY_LINKED_LIST_CLASS_NAME::Add(Element* element) SINGLY_LINKED_LIST_CLASS_NAME::Add(Element* element)
{ {
if (element != NULL) { if (element != NULL) {
Link* link = sGetLink(element); sGetLink(element)->next = fFirst;
link->next = fFirst;
fFirst = element; fFirst = element;
} }
} }