]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fixed never-true tests in testRefCount
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 2 Jan 2015 17:35:49 +0000 (18:35 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 2 Jan 2015 17:35:49 +0000 (18:35 +0100)
src/tests/testRefCount.cc

index d1e37808277b1e1a7161ab0ec47288fb645476ac..48f3d41c63b27946c11289ccc3b1438468a17f6b 100644 (file)
@@ -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;
     }