From 29cad83b8d31ae7d799c67fd1e8235360946d839 Mon Sep 17 00:00:00 2001
From: Rashad Kanavath <rashad.kanavath@c-s.fr>
Date: Wed, 7 Oct 2015 13:01:01 +0200
Subject: [PATCH] ENH: remove extra space in the errmsg argument

---
 .../src/otbSentinel1ImageMetadataInterface.cxx | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/Modules/Core/Metadata/src/otbSentinel1ImageMetadataInterface.cxx b/Modules/Core/Metadata/src/otbSentinel1ImageMetadataInterface.cxx
index c4617bb70f..daac6d7c36 100644
--- a/Modules/Core/Metadata/src/otbSentinel1ImageMetadataInterface.cxx
+++ b/Modules/Core/Metadata/src/otbSentinel1ImageMetadataInterface.cxx
@@ -157,7 +157,7 @@ Sentinel1ImageMetadataInterface
       }
 
     const std::string date_time_str = imageKeywordlist.GetMetadataByKey(key);
-    Utils::ConvertStringToVector(date_time_str, dateFields, key, " T:-.");
+    Utils::ConvertStringToVector(date_time_str, dateFields, key, "T:-.");
     }
 
 }
@@ -169,7 +169,7 @@ Sentinel1ImageMetadataInterface::GetYear() const
   ParseDateTime("support_data.image_date", m_AcquisitionDateFields);
   if(m_AcquisitionDateFields.size() > 0 )
     {
-    value = Utils::LexicalCast<int>( m_AcquisitionDateFields[0], " support_data.image_date:year(int)" );
+    value = Utils::LexicalCast<int>( m_AcquisitionDateFields[0], "support_data.image_date:year(int)" );
     }
   else
     {
@@ -185,7 +185,7 @@ Sentinel1ImageMetadataInterface::GetMonth() const
   ParseDateTime("support_data.image_date", m_AcquisitionDateFields);
   if(m_AcquisitionDateFields.size() > 1 )
     {
-    value = Utils::LexicalCast<int>( m_AcquisitionDateFields[1], " support_data.image_date:month(int)" );
+    value = Utils::LexicalCast<int>( m_AcquisitionDateFields[1], "support_data.image_date:month(int)" );
     }
   else
     {
@@ -201,7 +201,7 @@ Sentinel1ImageMetadataInterface::GetDay() const
   ParseDateTime("support_data.image_date", m_AcquisitionDateFields);
   if(m_AcquisitionDateFields.size() > 2 )
     {
-    value = Utils::LexicalCast<int>( m_AcquisitionDateFields[2], " support_data.image_date:day(int)");
+    value = Utils::LexicalCast<int>( m_AcquisitionDateFields[2], "support_data.image_date:day(int)");
     }
   else
     {
@@ -217,7 +217,7 @@ Sentinel1ImageMetadataInterface::GetHour() const
   ParseDateTime("support_data.image_date", m_AcquisitionDateFields);
   if(m_AcquisitionDateFields.size() > 3 )
     {
-    value = Utils::LexicalCast<int>( m_AcquisitionDateFields[3], " support_data.image_date:hour(int)");
+    value = Utils::LexicalCast<int>( m_AcquisitionDateFields[3], "support_data.image_date:hour(int)");
     }
   else
     {
@@ -233,7 +233,7 @@ Sentinel1ImageMetadataInterface::GetMinute() const
   ParseDateTime("support_data.image_date", m_AcquisitionDateFields);
   if(m_AcquisitionDateFields.size() > 4 )
     {
-    value = Utils::LexicalCast<int>( m_AcquisitionDateFields[4], " support_data.image_date:minute(int)");
+    value = Utils::LexicalCast<int>( m_AcquisitionDateFields[4], "support_data.image_date:minute(int)");
     }
   else
     {
@@ -249,7 +249,7 @@ Sentinel1ImageMetadataInterface::GetProductionYear() const
   ParseDateTime("support_data.date", m_ProductionDateFields);
   if(m_ProductionDateFields.size() > 0 )
     {
-    value = Utils::LexicalCast<int>( m_ProductionDateFields[0], " support_data.date:year(int)" );
+    value = Utils::LexicalCast<int>( m_ProductionDateFields[0], "support_data.date:year(int)" );
     }
   else
     {
@@ -266,7 +266,7 @@ Sentinel1ImageMetadataInterface::GetProductionMonth() const
   ParseDateTime("support_data.date", m_ProductionDateFields);
   if(m_ProductionDateFields.size() > 1 )
     {
-    value = Utils::LexicalCast<int>( m_ProductionDateFields[1], " support_data.date:month(int)" );
+    value = Utils::LexicalCast<int>( m_ProductionDateFields[1], "support_data.date:month(int)" );
     }
   else
     {
@@ -282,7 +282,7 @@ Sentinel1ImageMetadataInterface::GetProductionDay() const
   ParseDateTime("support_data.date", m_ProductionDateFields);
   if(m_ProductionDateFields.size() > 2 )
     {
-    value = Utils::LexicalCast<int>( m_ProductionDateFields[2], " support_data.date:day(int)" );
+    value = Utils::LexicalCast<int>( m_ProductionDateFields[2], "support_data.date:day(int)" );
     }
   else
     {
-- 
GitLab