summaryrefslogtreecommitdiff
path: root/src/sptr.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-11-24 23:49:50 +0000
committerMike Buland <eichlan@xagasoft.com>2006-11-24 23:49:50 +0000
commit2828a0bb77e2cf1bc6fbd38c3bca5cfaddb23b80 (patch)
treea86bc88b7bcd8e6c138353be03fd7045f245ca38 /src/sptr.h
parent4b61df8396593f40148a1815478513f95a86d59a (diff)
downloadlibbu++-2828a0bb77e2cf1bc6fbd38c3bca5cfaddb23b80.tar.gz
libbu++-2828a0bb77e2cf1bc6fbd38c3bca5cfaddb23b80.tar.bz2
libbu++-2828a0bb77e2cf1bc6fbd38c3bca5cfaddb23b80.tar.xz
libbu++-2828a0bb77e2cf1bc6fbd38c3bca5cfaddb23b80.zip
Fixed size bug.
Diffstat (limited to 'src/sptr.h')
-rw-r--r--src/sptr.h10
1 files changed, 10 insertions, 0 deletions
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 {