* Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26712 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e6f3de9a29
commit
aaad303e67
@ -23,7 +23,7 @@ public:
|
||||
SinglyLinkedListLink() : next(NULL) {}
|
||||
~SinglyLinkedListLink() {}
|
||||
|
||||
Element *next;
|
||||
Element* next;
|
||||
};
|
||||
|
||||
// SinglyLinkedListLinkImpl
|
||||
@ -180,8 +180,7 @@ void
|
||||
SINGLY_LINKED_LIST_CLASS_NAME::Add(Element* element)
|
||||
{
|
||||
if (element != NULL) {
|
||||
Link* link = sGetLink(element);
|
||||
link->next = fFirst;
|
||||
sGetLink(element)->next = fFirst;
|
||||
fFirst = element;
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
SinglyLinkedListLink() : next(NULL) {}
|
||||
~SinglyLinkedListLink() {}
|
||||
|
||||
Element *next;
|
||||
Element* next;
|
||||
};
|
||||
|
||||
// SinglyLinkedListLinkImpl
|
||||
@ -174,8 +174,7 @@ void
|
||||
SINGLY_LINKED_LIST_CLASS_NAME::Add(Element* element)
|
||||
{
|
||||
if (element != NULL) {
|
||||
Link* link = sGetLink(element);
|
||||
link->next = fFirst;
|
||||
sGetLink(element)->next = fFirst;
|
||||
fFirst = element;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user