aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hash.h2
-rw-r--r--src/sptr.h10
2 files changed, 12 insertions, 0 deletions
diff --git a/src/hash.h b/src/hash.h
index d847add..d53e2be 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -461,6 +461,8 @@ private:
461 aKeys = ka.allocate( nCapacity ); 461 aKeys = ka.allocate( nCapacity );
462 aValues = va.allocate( nCapacity ); 462 aValues = va.allocate( nCapacity );
463 463
464 nFilled = 0;
465
464 // Re-insert all of the old data (except deleted items) 466 // Re-insert all of the old data (except deleted items)
465 for( uint32_t j = 0; j < nOldCapacity; j++ ) 467 for( uint32_t j = 0; j < nOldCapacity; j++ )
466 { 468 {
diff --git a/src/sptr.h b/src/sptr.h
index 51e27b0..d152fb4 100644
--- a/src/sptr.h
+++ b/src/sptr.h
@@ -64,6 +64,16 @@ public:
64 return pData == src.pData; 64 return pData == src.pData;
65 } 65 }
66 66
67 operator bool()
68 {
69 return pRefCnt != NULL;
70 }
71
72 bool isSet()
73 {
74 return pRefCnt != NULL;
75 }
76
67private: 77private:
68 void decCount() 78 void decCount()
69 { 79 {