From c0d0364c030688aa8bfe4ad8dcaa2cffed8c0d04 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 May 2009 16:04:14 +0000 Subject: Strip trailing whitespace. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@1999 a436a847-0d15-0410-975c-d299462d15a1 --- raul/ListImpl.hpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'raul/ListImpl.hpp') diff --git a/raul/ListImpl.hpp b/raul/ListImpl.hpp index 24fc761..30d1cbf 100644 --- a/raul/ListImpl.hpp +++ b/raul/ListImpl.hpp @@ -1,15 +1,15 @@ /* This file is part of Raul. * Copyright (C) 2007 Dave Robillard - * + * * Raul is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. - * + * * Raul is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. - * + * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA @@ -63,7 +63,7 @@ List::push_back(Node* const ln) assert(ln); ln->next(NULL); - + if ( ! _head.get()) { // empty ln->prev(NULL); _tail = ln; @@ -91,7 +91,7 @@ List::push_back(T& elem) assert(ln); ln->next(NULL); - + if ( ! _head.get()) { // empty ln->prev(NULL); _tail = ln; @@ -122,7 +122,7 @@ List::append(List& list) Node* const my_tail = _tail.get(); Node* const other_head = list._head.get(); Node* const other_tail = list._tail.get(); - + assert((my_head && my_tail) || (!my_head && !my_tail)); assert((other_head && other_tail) || (!other_head && !other_tail)); @@ -132,7 +132,7 @@ List::append(List& list) _tail = other_tail; _size = list._size; } else if (other_head != NULL && other_tail != NULL) { - + other_head->prev(my_tail); // FIXME: atomicity an issue? _size < true size is probably fine... @@ -167,7 +167,7 @@ List::find(const T& val) /** Remove an element from the list using an iterator. - * + * * This function is realtime safe - it is the caller's responsibility to * delete the returned Node, or there will be a leak. * Thread safe (safe to call while another thread reads the list). @@ -178,7 +178,7 @@ typename List::Node* List::erase(const iterator iter) { Node* const n = iter._listnode; - + if (n) { Node* const prev = n->prev(); Node* const next = n->next(); @@ -196,7 +196,7 @@ List::erase(const iterator iter) if (next) n->next()->prev(prev); - + --_size; } @@ -313,7 +313,7 @@ List::begin() typename List::iterator iter(this); iter._listnode = _head.get(); - + return iter; } @@ -340,7 +340,7 @@ List::const_iterator::const_iterator(const List* const list) template const T& -List::const_iterator::operator*() +List::const_iterator::operator*() { assert(_listnode); return _listnode->elem(); @@ -349,7 +349,7 @@ List::const_iterator::operator*() template const T* -List::const_iterator::operator->() +List::const_iterator::operator->() { assert(_listnode); return &_listnode->elem(); -- cgit v1.2.1