]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/testRefCount.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / testRefCount.cc
index d1e37808277b1e1a7161ab0ec47288fb645476ac..a0a75f41e2f1d72c1e60f9602d2bbd004c7c221c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -20,7 +20,7 @@ public:
     ~_ToRefCount() {--Instances;}
 
     int someMethod() {
-        if (!this)
+        if (!Instances)
             exit(1);
 
         return 1;
@@ -40,7 +40,7 @@ public:
     typedef RefCount<AlsoRefCountable> Pointer;
 
     int doSomething() {
-        if (!this)
+        if (!Instances)
             exit (1);
         return 1;
     }