summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmCTest.cxx5
-rw-r--r--Source/cmakemain.cxx3
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::vector<std::string>const& 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;
}