From 28bc9c95e4b13a8a92a1c05e4cf45f07b5344479 Mon Sep 17 00:00:00 2001
From: Victor Poughon <victor.poughon@cnes.fr>
Date: Mon, 22 Oct 2018 10:49:16 +0200
Subject: [PATCH] REFAC: prefer std::string::pop_back (C++11)

---
 .../ApplicationEngine/src/otbWrapperDocExampleStructure.cxx     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Modules/Wrappers/ApplicationEngine/src/otbWrapperDocExampleStructure.cxx b/Modules/Wrappers/ApplicationEngine/src/otbWrapperDocExampleStructure.cxx
index 83c98b0b50..520133cde8 100644
--- a/Modules/Wrappers/ApplicationEngine/src/otbWrapperDocExampleStructure.cxx
+++ b/Modules/Wrappers/ApplicationEngine/src/otbWrapperDocExampleStructure.cxx
@@ -146,7 +146,7 @@ DocExampleStructure::GenerateCLExample( unsigned int exId )
   res = oss.str();
 
   // Suppress last added space
-  res.erase( res.size()-1, 1);
+  res.pop_back();
 
   return res;
 }
-- 
GitLab