aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2020-10-01 13:28:39 -0700
committerMike Buland <eichlan@xagasoft.com>2020-10-01 13:28:39 -0700
commitbabbd76cf79ff196c409000f7724c08798a46dd5 (patch)
tree6172e09ac5bf000eed2e8b014bd6e91188bf697f
parent701f67d8d225874d184aa229599376b1e3a5a6f2 (diff)
downloadlibbu++-babbd76cf79ff196c409000f7724c08798a46dd5.tar.gz
libbu++-babbd76cf79ff196c409000f7724c08798a46dd5.tar.bz2
libbu++-babbd76cf79ff196c409000f7724c08798a46dd5.tar.xz
libbu++-babbd76cf79ff196c409000f7724c08798a46dd5.zip
Fixed bug in CachePtr pointer dereference.
I guess I never used it before, it wouldn't even compile, it wasn't dereferencing the returned pointer. It's not a great idea to use it, but sometimes you need it.
-rw-r--r--src/unstable/cachebase.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unstable/cachebase.h b/src/unstable/cachebase.h
index 66c915f..7a54465 100644
--- a/src/unstable/cachebase.h
+++ b/src/unstable/cachebase.h
@@ -224,13 +224,13 @@ namespace Bu
224 obtype &operator*() 224 obtype &operator*()
225 { 225 {
226 bind(); 226 bind();
227 return pData; 227 return *pData;
228 } 228 }
229 229
230 const obtype &operator*() const 230 const obtype &operator*() const
231 { 231 {
232 bind(); 232 bind();
233 return pData; 233 return *pData;
234 } 234 }
235 235
236 obtype *operator->() 236 obtype *operator->()