From 13e8565c270b2a00d5500eecd0505c7dc22d29e9 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Fri, 2 Jan 2015 18:35:49 +0100 Subject: [PATCH] Fixed never-true tests in testRefCount --- src/tests/testRefCount.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.3