aboutsummaryrefslogtreecommitdiff
path: root/src/list.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-01-12 00:35:05 +0000
committerMike Buland <eichlan@xagasoft.com>2009-01-12 00:35:05 +0000
commit299bb8f95890495cd6fc1a0a79c6531032f39772 (patch)
treeb575222d8a109c1b20ca92c7e31772eb7525bcff /src/list.h
parent1291252a7b1317ad2dc13fbeb15f6e9d2d92192c (diff)
downloadlibbu++-299bb8f95890495cd6fc1a0a79c6531032f39772.tar.gz
libbu++-299bb8f95890495cd6fc1a0a79c6531032f39772.tar.bz2
libbu++-299bb8f95890495cd6fc1a0a79c6531032f39772.tar.xz
libbu++-299bb8f95890495cd6fc1a0a79c6531032f39772.zip
The Bu::List::end() function was returning a null pointer instead of a
properly formed iterator. That caused a few problems. I think it's all set now though.
Diffstat (limited to 'src/list.h')
-rw-r--r--src/list.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/list.h b/src/list.h
index 530d858..8c5e94e 100644
--- a/src/list.h
+++ b/src/list.h
@@ -490,9 +490,19 @@ namespace Bu
490 * the list. 490 * the list.
491 *@returns (const Link *) 491 *@returns (const Link *)
492 */ 492 */
493 const Link *end() const 493 const iterator end()
494 { 494 {
495 return NULL; 495 return iterator( NULL, *this );
496 }
497
498 /**
499 * Get an iterator pointing to a place just past the last item in
500 * the list.
501 *@returns (const Link *)
502 */
503 const const_iterator end() const
504 {
505 return const_iterator( NULL, *this );
496 } 506 }
497 507
498 /** 508 /**