summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2017-09-23 12:57:51 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2017-09-23 13:30:44 (GMT)
commit0332ec72b287ae464a67002fb6b9057e772f19af (patch)
tree2130a9d9eafbb9af63e0fd6e045002daef7509bc /Source/cmCPluginAPI.cxx
parentcf3990365a8b1b9777a832b321eeeefc29716fd4 (diff)
downloadCMake-0332ec72b287ae464a67002fb6b9057e772f19af.zip
CMake-0332ec72b287ae464a67002fb6b9057e772f19af.tar.gz
CMake-0332ec72b287ae464a67002fb6b9057e772f19af.tar.bz2
cmCPluginAPI: remove explicit casts to void*
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index eee18c0..e1e11af 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)