diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-01-12 00:35:05 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-01-12 00:35:05 +0000 |
commit | 299bb8f95890495cd6fc1a0a79c6531032f39772 (patch) | |
tree | b575222d8a109c1b20ca92c7e31772eb7525bcff /src | |
parent | 1291252a7b1317ad2dc13fbeb15f6e9d2d92192c (diff) | |
download | libbu++-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')
-rw-r--r-- | src/list.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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 | /** |