From: Francesco Chemolli Date: Fri, 2 Jan 2015 17:35:49 +0000 (+0100) Subject: Fixed never-true tests in testRefCount X-Git-Tag: merge-candidate-3-v1~387 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13e8565c270b2a00d5500eecd0505c7dc22d29e9;p=thirdparty%2Fsquid.git Fixed never-true tests in testRefCount --- diff --git a/src/tests/testRefCount.cc b/src/tests/testRefCount.cc index d1e3780827..48f3d41c63 100644 --- a/src/tests/testRefCount.cc +++ b/src/tests/testRefCount.cc @@ -20,7 +20,7 @@ public: ~_ToRefCount() {--Instances;} int someMethod() { - if (!this) + if (!Instances) exit(1); return 1; @@ -40,7 +40,7 @@ public: typedef RefCount Pointer; int doSomething() { - if (!this) + if (!Instances) exit (1); return 1; }