diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index f1189f4ed..91dee204c 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -34,13 +34,11 @@ void cmSetClientData(void *info, void *cd) unsigned int cmGetCacheMajorVersion(void *arg) { - cmMakefile *mf = static_cast(arg); - return mf->GetCacheMajorVersion(); + return cmMakefile::GetCacheMajorVersion(); } unsigned int cmGetCacheMinorVersion(void *arg) { - cmMakefile *mf = static_cast(arg); - return mf->GetCacheMinorVersion(); + return cmMakefile::GetCacheMinorVersion(); } unsigned int cmGetMajorVersion(void *)