diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-06-07 03:30:38 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-06-07 03:30:38 +0000 |
commit | 0e41e5b6c004f695013d65f71c4223e2540d1391 (patch) | |
tree | 0ba5ef29452c00d5005d77453bd8d01cb2392afc /src/hash.h | |
parent | 8b598e8436a7110abbd0a7566138bcaa952bb527 (diff) | |
download | libbu++-0e41e5b6c004f695013d65f71c4223e2540d1391.tar.gz libbu++-0e41e5b6c004f695013d65f71c4223e2540d1391.tar.bz2 libbu++-0e41e5b6c004f695013d65f71c4223e2540d1391.tar.xz libbu++-0e41e5b6c004f695013d65f71c4223e2540d1391.zip |
Minor change to the operation of the Hash, now dereferencing an iterator with
the prefix * operator will return only a reference to the value, not a pair, it
was causing issues, and you can still get at the key with the getKey function.
Diffstat (limited to '')
-rw-r--r-- | src/hash.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -437,7 +437,7 @@ namespace Bu | |||
437 | bFinished = oth.bFinished; | 437 | bFinished = oth.bFinished; |
438 | } | 438 | } |
439 | 439 | ||
440 | std::pair<key,value> operator *() | 440 | value &operator *() |
441 | { | 441 | { |
442 | return hsh.getAtPos( nPos ); | 442 | return hsh.getAtPos( nPos ); |
443 | } | 443 | } |