]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add missing dereference operator in TidyPointer
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 1 Jul 2016 17:35:00 +0000 (05:35 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 1 Jul 2016 17:35:00 +0000 (05:35 +1200)
src/base/TidyPointer.h

index 50b21e2a09760fd304c196243f370e1f7c4ac9a8..7152f94ccec42bcb892f49fd9b855b7516cb7240 100644 (file)
@@ -25,6 +25,8 @@ public:
 public:
     bool operator !() const { return !raw; }
     explicit operator bool() const { return raw; }
+    T* operator ->() const { return get(); }
+
     /// Returns raw and possibly NULL pointer
     T *get() const { return raw; }