Skip to content
Snippets Groups Projects
Commit 0da01603 authored by Tom Fischer's avatar Tom Fischer
Browse files

[A/DE] Use std::copy instead of manual copying.

parent bc24d343
No related branches found
No related tags found
No related merge requests found
......@@ -340,10 +340,7 @@ void DiagramList::setList(std::vector<std::pair<float, float>> const& coords)
return;
this->_startDate = QDateTime();
std::size_t nCoords = coords.size();
for (std::size_t i = 0; i < nCoords; i++)
_coords.push_back(coords[i]);
std::copy(coords.begin(), coords.end(), std::back_inserter(_coords));
update();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment