From 0da01603ea037560220730d632f81d290aa39f6f Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Tue, 14 Aug 2018 15:00:04 +0200
Subject: [PATCH] [A/DE] Use std::copy instead of manual copying.

---
 .../DataExplorer/DataView/DiagramView/DiagramList.cpp        | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/Applications/DataExplorer/DataView/DiagramView/DiagramList.cpp b/Applications/DataExplorer/DataView/DiagramView/DiagramList.cpp
index bc736215ddf..8bf4aafd5d9 100644
--- a/Applications/DataExplorer/DataView/DiagramView/DiagramList.cpp
+++ b/Applications/DataExplorer/DataView/DiagramView/DiagramList.cpp
@@ -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();
 }
 
-- 
GitLab