From aaad303e67070695927b233b0c08776755a5c9b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 1 Aug 2008 09:57:14 +0000 Subject: [PATCH] * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26712 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/fs_shell/SinglyLinkedList.h | 5 ++--- headers/private/kernel/util/SinglyLinkedList.h | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/headers/private/fs_shell/SinglyLinkedList.h b/headers/private/fs_shell/SinglyLinkedList.h index 920b3c7e93..ccab8ac180 100644 --- a/headers/private/fs_shell/SinglyLinkedList.h +++ b/headers/private/fs_shell/SinglyLinkedList.h @@ -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; } } diff --git a/headers/private/kernel/util/SinglyLinkedList.h b/headers/private/kernel/util/SinglyLinkedList.h index a44d747a8f..8ac979dca9 100644 --- a/headers/private/kernel/util/SinglyLinkedList.h +++ b/headers/private/kernel/util/SinglyLinkedList.h @@ -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; } }