Skip to content
Snippets Groups Projects
Commit a9c908ec authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

PERF: use resize() instead susbtr(). std::string.pop_back() is C+11

parent 15fd9974
No related branches found
No related tags found
No related merge requests found
......@@ -118,9 +118,9 @@ Radarsat2ImageMetadataInterface
itkExceptionMacro( << "no key named '" << key << "'");
}
const std::string date_time_str = imageKeywordlist.GetMetadataByKey(key);
Utils::ConvertStringToVector(date_time_str.substr(0, date_time_str.size()-1), dateFields, key, "-T:.");
std::string date_time_str = imageKeywordlist.GetMetadataByKey(key);
date_time_str.resize(date_time_str.size() - 1);
Utils::ConvertStringToVector(date_time_str, dateFields, key, "-T:.");
}
}
......
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