mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 06:10:04 -05:00
cmCPluginAPI: remove explicit casts to void*
This commit is contained in:
@@ -505,13 +505,12 @@ cmCPluginAPISourceFileMap cmCPluginAPISourceFiles;
|
|||||||
|
|
||||||
void* CCONV cmCreateSourceFile(void)
|
void* CCONV cmCreateSourceFile(void)
|
||||||
{
|
{
|
||||||
return (void*)new cmCPluginAPISourceFile;
|
return new cmCPluginAPISourceFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
void* CCONV cmCreateNewSourceFile(void*)
|
void* CCONV cmCreateNewSourceFile(void*)
|
||||||
{
|
{
|
||||||
cmCPluginAPISourceFile* sf = new cmCPluginAPISourceFile;
|
return new cmCPluginAPISourceFile;
|
||||||
return (void*)sf;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCONV cmDestroySourceFile(void* arg)
|
void CCONV cmDestroySourceFile(void* arg)
|
||||||
@@ -544,7 +543,7 @@ void CCONV* cmGetSource(void* arg, const char* name)
|
|||||||
cmCPluginAPISourceFileMap::value_type entry(rsf, sf);
|
cmCPluginAPISourceFileMap::value_type entry(rsf, sf);
|
||||||
i = cmCPluginAPISourceFiles.insert(entry).first;
|
i = cmCPluginAPISourceFiles.insert(entry).first;
|
||||||
}
|
}
|
||||||
return (void*)i->second;
|
return i->second;
|
||||||
}
|
}
|
||||||
return nullptr;
|
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.
|
// Store the proxy in the map so it can be re-used and deleted later.
|
||||||
cmCPluginAPISourceFiles[rsf] = sf;
|
cmCPluginAPISourceFiles[rsf] = sf;
|
||||||
return (void*)sf;
|
return sf;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* CCONV cmSourceFileGetSourceName(void* arg)
|
const char* CCONV cmSourceFileGetSourceName(void* arg)
|
||||||
|
|||||||
Reference in New Issue
Block a user