diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-07-06 22:04:40 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-07-06 22:04:40 +0000 |
commit | c36256531396d75333669fafd5443c182bb0ab5e (patch) | |
tree | 1fcc4527049eba255f4165d5df009309a2bd09a8 /src/list.h | |
parent | 110c20e507e1fe0edfba61f678c1974a0a29e9b3 (diff) | |
download | libbu++-c36256531396d75333669fafd5443c182bb0ab5e.tar.gz libbu++-c36256531396d75333669fafd5443c182bb0ab5e.tar.bz2 libbu++-c36256531396d75333669fafd5443c182bb0ab5e.tar.xz libbu++-c36256531396d75333669fafd5443c182bb0ab5e.zip |
Fixed an annoying bug in Bu::List::erase that caused you to not be able to call
lThings.erase( lThings.begin() );
Diffstat (limited to '')
-rw-r--r-- | src/list.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -396,7 +396,7 @@ namespace Bu | |||
396 | * Erase an item from the list. | 396 | * Erase an item from the list. |
397 | *@param i (iterator) The item to erase. | 397 | *@param i (iterator) The item to erase. |
398 | */ | 398 | */ |
399 | void erase( iterator &i ) | 399 | void erase( iterator i ) |
400 | { | 400 | { |
401 | Link *pCur = i.pLink; | 401 | Link *pCur = i.pLink; |
402 | Link *pPrev = pCur->pPrev; | 402 | Link *pPrev = pCur->pPrev; |