From 00e5f6235c33f348d405091c2f927c5e76044e2d Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Tue, 22 Jun 2021 09:13:03 +0200 Subject: [PATCH] [A/FileIO/CsvInterface] Narrow scope of variable. --- Applications/FileIO/CsvInterface.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Applications/FileIO/CsvInterface.h b/Applications/FileIO/CsvInterface.h index 2c6ae056794..b30c83f157b 100644 --- a/Applications/FileIO/CsvInterface.h +++ b/Applications/FileIO/CsvInterface.h @@ -202,7 +202,6 @@ private: std::string line; std::size_t line_count(0); std::size_t error_count(0); - std::list<std::string>::const_iterator it; while (std::getline(in, line)) { line_count++; @@ -217,7 +216,7 @@ private: error_count++; continue; } - it = fields.begin(); + auto it = fields.begin(); std::advance(it, column_idx); std::istringstream stream(*it); -- GitLab