summaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-07 03:30:38 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-07 03:30:38 +0000
commit0e41e5b6c004f695013d65f71c4223e2540d1391 (patch)
tree0ba5ef29452c00d5005d77453bd8d01cb2392afc /src/hash.h
parent8b598e8436a7110abbd0a7566138bcaa952bb527 (diff)
downloadlibbu++-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 'src/hash.h')
-rw-r--r--src/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash.h b/src/hash.h
index f25c258..a81c355 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -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 }