From 795b5d54b29acffa469b69e15a619d162900fa54 Mon Sep 17 00:00:00 2001 From: Victor Poughon <victor.poughon@cnes.fr> Date: Thu, 19 Jul 2018 10:06:05 +0200 Subject: [PATCH] BUG: remove useless substr --- .../Wrappers/CommandLine/src/otbWrapperCommandLineParser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineParser.cxx b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineParser.cxx index e9a141a132..a943c31da0 100644 --- a/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineParser.cxx +++ b/Modules/Wrappers/CommandLine/src/otbWrapperCommandLineParser.cxx @@ -153,7 +153,7 @@ CommandLineParser::GetPaths( std::vector<std::string> & paths, const std::string if( tempModPath.size() > 0 ) { - std::vector<itksys::String> pathAttribut = itksys::SystemTools::SplitString(tempModPath.substr(0, tempModPath.size()), ' ', false); + std::vector<itksys::String> pathAttribut = itksys::SystemTools::SplitString(tempModPath, ' ', false); // Remove " " string element -- GitLab