aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-07-06 22:04:40 +0000
committerMike Buland <eichlan@xagasoft.com>2007-07-06 22:04:40 +0000
commitc36256531396d75333669fafd5443c182bb0ab5e (patch)
tree1fcc4527049eba255f4165d5df009309a2bd09a8
parent110c20e507e1fe0edfba61f678c1974a0a29e9b3 (diff)
downloadlibbu++-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.h b/src/list.h
index e05ebbc..3e5e292 100644
--- a/src/list.h
+++ b/src/list.h
@@ -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;