From a2f11e6a98c815a32dbff2d89d36ab209f90d3cf Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Mon, 21 Jun 2021 08:43:12 +0200
Subject: [PATCH] [GL/SensorData] Avoid temporary.

---
 GeoLib/SensorData.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/GeoLib/SensorData.cpp b/GeoLib/SensorData.cpp
index fa9b6ea3cb1..97e76245440 100644
--- a/GeoLib/SensorData.cpp
+++ b/GeoLib/SensorData.cpp
@@ -147,8 +147,7 @@ int SensorData::readDataFromFile(const std::string& file_name)
         this->_vec_names.push_back(
             SensorData::convertString2SensorDataType(*++it));
         this->_data_unit_string.emplace_back("");
-        auto* data = new std::vector<float>;
-        this->_data_vecs.push_back(data);
+        this->_data_vecs.push_back(new std::vector<float>);
     }
 
     while (std::getline(in, line))
-- 
GitLab