Panagiotis Christopoulos Charitos 5 年之前
父節點
當前提交
8869945c15
共有 1 個文件被更改,包括 3 次插入6 次删除
  1. 3 6
      tests/framework/Framework.cpp

+ 3 - 6
tests/framework/Framework.cpp

@@ -208,19 +208,16 @@ int Tester::listTests()
 	return 0;
 }
 
-static Tester* testerInstance = nullptr;
+static Tester* g_testerInstance = nullptr;
 
 Tester& getTesterSingleton()
 {
-	return *(testerInstance ? testerInstance : (testerInstance = new Tester));
+	return *(g_testerInstance ? g_testerInstance : (g_testerInstance = new Tester));
 }
 
 void deleteTesterSingleton()
 {
-	if(testerInstance != nullptr)
-	{
-		delete testerInstance;
-	}
+	delete g_testerInstance;
 }
 
 void initConfig(ConfigSet& cfg)