summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorAaron Orenstein <aorenste@fb.com>2017-08-18 01:27:03 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-20 18:10:44 (GMT)
commitfe1e811b4fec546d8a55cd1160335766422f2127 (patch)
treeb6ff395351c45d32abc14c6df86c8119b6aa5ae8 /Source/cmTarget.cxx
parent95df03a1d44d48b5407dd0ddc9e618ce2f17762b (diff)
downloadCMake-fe1e811b4fec546d8a55cd1160335766422f2127.zip
CMake-fe1e811b4fec546d8a55cd1160335766422f2127.tar.gz
CMake-fe1e811b4fec546d8a55cd1160335766422f2127.tar.bz2
cmSourceFileLocation: Drop unnecessary copy-assignment operator
Update the one place that used it to avoid needing assignment.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index c26d49a..cb09156 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -592,8 +592,9 @@ public:
{
std::vector<std::string> files;
cmSystemTools::ExpandListArgument(entry, files);
- std::vector<cmSourceFileLocation> locations(files.size());
- std::transform(files.begin(), files.end(), locations.begin(),
+ std::vector<cmSourceFileLocation> locations;
+ locations.reserve(files.size());
+ std::transform(files.begin(), files.end(), std::back_inserter(locations),
CreateLocation(this->Needle.GetMakefile()));
return std::find_if(locations.begin(), locations.end(),