From 0332ec72b287ae464a67002fb6b9057e772f19af Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sat, 23 Sep 2017 14:57:51 +0200 Subject: cmCPluginAPI: remove explicit casts to void* --- Source/cmCPluginAPI.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Source/cmCPluginAPI.cxx') diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index eee18c0a0d..e1e11afad5 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -505,13 +505,12 @@ cmCPluginAPISourceFileMap cmCPluginAPISourceFiles; void* CCONV cmCreateSourceFile(void) { - return (void*)new cmCPluginAPISourceFile; + return new cmCPluginAPISourceFile; } void* CCONV cmCreateNewSourceFile(void*) { - cmCPluginAPISourceFile* sf = new cmCPluginAPISourceFile; - return (void*)sf; + return new cmCPluginAPISourceFile; } void CCONV cmDestroySourceFile(void* arg) @@ -544,7 +543,7 @@ void CCONV* cmGetSource(void* arg, const char* name) cmCPluginAPISourceFileMap::value_type entry(rsf, sf); i = cmCPluginAPISourceFiles.insert(entry).first; } - return (void*)i->second; + return i->second; } return nullptr; } @@ -573,7 +572,7 @@ void* CCONV cmAddSource(void* arg, void* arg2) // Store the proxy in the map so it can be re-used and deleted later. cmCPluginAPISourceFiles[rsf] = sf; - return (void*)sf; + return sf; } const char* CCONV cmSourceFileGetSourceName(void* arg) -- cgit v1.2.1