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

[A/FileIO] Fix clang-tidy warning.

Fix cppcoreguidelines-pro-type-member-init.
parent 8e926792
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ int CsvInterface::readPoints(std::string const& fname, char delim, ...@@ -88,7 +88,7 @@ int CsvInterface::readPoints(std::string const& fname, char delim,
continue; continue;
} }
it = fields.begin(); it = fields.begin();
std::array<double, 3> point; std::array<double, 3> point{};
try { try {
point[0] = std::stod(*it); point[0] = std::stod(*it);
point[1] = std::stod(*(++it)); point[1] = std::stod(*(++it));
...@@ -189,7 +189,7 @@ int CsvInterface::readPoints(std::ifstream &in, char delim, ...@@ -189,7 +189,7 @@ int CsvInterface::readPoints(std::ifstream &in, char delim,
continue; continue;
} }
std::array<double, 3> point; std::array<double, 3> point{};
it = fields.begin(); it = fields.begin();
try { try {
std::advance(it, column_advance[0]); std::advance(it, column_advance[0]);
......
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