From 3e03bed0acf45313c7eee351ab5047e926a5ee44 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 10 Sep 2004 14:40:28 -0400 Subject: ENH: fix warning correctly --- Source/cmCTest.cxx | 5 ++--- Source/cmakemain.cxx | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 211d44b..5dbd52e 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1568,11 +1568,10 @@ int cmCTest::Run(std::vectorconst& args, std::string* output) if(cmakeAndTest) { cmSystemTools::ResetErrorOccuredFlag(); - cmListFileCache *lfc = cmListFileCache::GetInstance(); - lfc->ClearCache(); + cmListFileCache::ClearCache(); int retv = this->RunCMakeAndTest(output); cmSystemTools::ResetErrorOccuredFlag(); - lfc->ClearCache(); + cmListFileCache::ClearCache(); #ifdef CMAKE_BUILD_WITH_CMAKE cmDynamicLoader::FlushCache(); #endif diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index 1c893ac..113d299 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -109,8 +109,7 @@ int main(int ac, char** av) #ifdef CMAKE_BUILD_WITH_CMAKE cmDynamicLoader::FlushCache(); #endif - cmListFileCache* lf = cmListFileCache::GetInstance(); - lf->ClearCache(); + cmListFileCache::ClearCache(); return ret; } -- cgit v0.12