diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2007-04-03 20:25:57 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2007-04-03 20:25:57 +0000 |
| commit | 32e79e479fab13b0b215fc479c1a558d989e1b36 (patch) | |
| tree | 9e6e3d3eb9778786770105a9c8ecb032d5d3b760 /src | |
| parent | c613ec4abb31983babb6c87e637624a13ee60bd6 (diff) | |
| download | libbu++-32e79e479fab13b0b215fc479c1a558d989e1b36.tar.gz libbu++-32e79e479fab13b0b215fc479c1a558d989e1b36.tar.bz2 libbu++-32e79e479fab13b0b215fc479c1a558d989e1b36.tar.xz libbu++-32e79e479fab13b0b215fc479c1a558d989e1b36.zip | |
Hey, it's nicer with const-ness.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sptr.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -65,12 +65,12 @@ public: | |||
| 65 | return pData == src.pData; | 65 | return pData == src.pData; |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | operator bool() | 68 | operator bool() const |
| 69 | { | 69 | { |
| 70 | return pRefCnt != NULL; | 70 | return pRefCnt != NULL; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | bool isSet() | 73 | bool isSet() const |
| 74 | { | 74 | { |
| 75 | return pRefCnt != NULL; | 75 | return pRefCnt != NULL; |
| 76 | } | 76 | } |
