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

[GL/SensorData] Avoid temporary.

parent 5ff4364e
No related branches found
No related tags found
No related merge requests found
...@@ -147,8 +147,7 @@ int SensorData::readDataFromFile(const std::string& file_name) ...@@ -147,8 +147,7 @@ int SensorData::readDataFromFile(const std::string& file_name)
this->_vec_names.push_back( this->_vec_names.push_back(
SensorData::convertString2SensorDataType(*++it)); SensorData::convertString2SensorDataType(*++it));
this->_data_unit_string.emplace_back(""); this->_data_unit_string.emplace_back("");
auto* data = new std::vector<float>; this->_data_vecs.push_back(new std::vector<float>);
this->_data_vecs.push_back(data);
} }
while (std::getline(in, line)) while (std::getline(in, line))
......
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