summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-18 16:10:03 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-05 19:44:25 (GMT)
commitbd990c803b40e1532cab6b29c75414ca6f30e782 (patch)
tree6e724661a3b4e195b3d437cf11053f797b8d9bcf /Source/cmCPluginAPI.cxx
parent5fc53f1edb2d003595ef224b31a805c3af0dc0e6 (diff)
downloadCMake-bd990c803b40e1532cab6b29c75414ca6f30e782.zip
CMake-bd990c803b40e1532cab6b29c75414ca6f30e782.tar.gz
CMake-bd990c803b40e1532cab6b29c75414ca6f30e782.tar.bz2
Remove use of ExpandSourceListArguments.
By now, it is only an expensive copy.
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index d0dc30a..691d80d 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -438,15 +438,14 @@ void CCONV cmExpandSourceListArguments(void *arg,
char ***resArgv,
unsigned int startArgumentIndex)
{
- cmMakefile *mf = static_cast<cmMakefile *>(arg);
+ (void)arg;
+ (void)startArgumentIndex;
std::vector<std::string> result;
- std::vector<std::string> args2;
int i;
for (i = 0; i < numArgs; ++i)
{
- args2.push_back(args[i]);
+ result.push_back(args[i]);
}
- mf->ExpandSourceListArguments(args2, result, startArgumentIndex);
int resargc = static_cast<int>(result.size());
char **resargv = 0;
if (resargc)