diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-01-19 23:15:34 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-01-19 23:15:34 +0000 |
commit | c336c66be30204a62ae3d25b6a67ae8485b2d3e5 (patch) | |
tree | 7667298000e6111ec5dc0c800edf074097af21a5 /src | |
parent | 22c526f708c433bfdf7833970eaf0a8d27050ea9 (diff) | |
download | libbu++-c336c66be30204a62ae3d25b6a67ae8485b2d3e5.tar.gz libbu++-c336c66be30204a62ae3d25b6a67ae8485b2d3e5.tar.bz2 libbu++-c336c66be30204a62ae3d25b6a67ae8485b2d3e5.tar.xz libbu++-c336c66be30204a62ae3d25b6a67ae8485b2d3e5.zip |
Experimental commit to see if references work...
Diffstat (limited to 'src')
-rw-r--r-- | src/hash.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -64,7 +64,7 @@ private: | |||
64 | bool bFilled; | 64 | bool bFilled; |
65 | 65 | ||
66 | public: | 66 | public: |
67 | operator _value() | 67 | operator _value &() |
68 | { | 68 | { |
69 | if( bFilled == false ) | 69 | if( bFilled == false ) |
70 | throw HashException( | 70 | throw HashException( |
@@ -74,7 +74,7 @@ public: | |||
74 | return *pValue; | 74 | return *pValue; |
75 | } | 75 | } |
76 | 76 | ||
77 | _value value() | 77 | _value &value() |
78 | { | 78 | { |
79 | if( bFilled == false ) | 79 | if( bFilled == false ) |
80 | throw HashException( | 80 | throw HashException( |
@@ -243,7 +243,7 @@ public: | |||
243 | clearBits(); | 243 | clearBits(); |
244 | } | 244 | } |
245 | 245 | ||
246 | virtual value get( key k ) | 246 | virtual value &get( key k ) |
247 | { | 247 | { |
248 | uint32_t hash = __calcHashCode( k ); | 248 | uint32_t hash = __calcHashCode( k ); |
249 | bool bFill; | 249 | bool bFill; |