From 3347c5e4f9fcdd36c06067d6c7cd5a985a9c5d94 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 7 Apr 2015 17:14:41 -0400 Subject: Revert topic 'refactor-cache-api' This topic was never tested without some follow-up commits. The GetCacheEntryValue API returns a pointer to memory freed on return. It will have to be revised along with the rest of the original topic. --- Source/cmCPluginAPI.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Source/cmCPluginAPI.cxx') diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index 987a7b17dd..691d80d7ef 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -51,14 +51,12 @@ void CCONV cmSetError(void *info, const char *err) unsigned int CCONV cmGetCacheMajorVersion(void *arg) { cmMakefile *mf = static_cast(arg); - cmCacheManager *manager = mf->GetCMakeInstance()->GetCacheManager(); - return manager->GetCacheMajorVersion(); + return mf->GetCacheMajorVersion(); } unsigned int CCONV cmGetCacheMinorVersion(void *arg) { cmMakefile *mf = static_cast(arg); - cmCacheManager *manager = mf->GetCMakeInstance()->GetCacheManager(); - return manager->GetCacheMinorVersion(); + return mf->GetCacheMinorVersion(); } unsigned int CCONV cmGetMajorVersion(void *) -- cgit v1.2.1