From 2c8ad910d70d1a57ab6395d5258ae467990d34e4 Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 6 Oct 2015 10:00:42 +0100 Subject: [PATCH] csv.input - remove redundant trim_copy --- plugins/input/csv/csv_datasource.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/input/csv/csv_datasource.cpp b/plugins/input/csv/csv_datasource.cpp index 91c75f557..16f7f9de3 100644 --- a/plugins/input/csv/csv_datasource.cpp +++ b/plugins/input/csv/csv_datasource.cpp @@ -202,9 +202,8 @@ void csv_datasource::parse_csv(T & stream) auto headers = csv_utils::parse_line(manual_headers_, separator_, quote_); for (auto const& header : headers) { - std::string val = mapnik::util::trim_copy(header); - detail::locate_geometry_column(val, index++, locator_); - headers_.push_back(val); + detail::locate_geometry_column(header, index++, locator_); + headers_.push_back(header); } } else // parse first line as headers