summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-09-10 18:40:28 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-09-10 18:40:28 (GMT)
commit3e03bed0acf45313c7eee351ab5047e926a5ee44 (patch)
treeedfff82e7ab9deb656cf421d9d9ac66fd5ad4fb1
parentcd8dc094f8a28afcde2959dfe8e7d205a93e4d6c (diff)
downloadCMake-3e03bed0acf45313c7eee351ab5047e926a5ee44.zip
CMake-3e03bed0acf45313c7eee351ab5047e926a5ee44.tar.gz
CMake-3e03bed0acf45313c7eee351ab5047e926a5ee44.tar.bz2
ENH: fix warning correctly
-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;
}