From 05f8f47e8e5c86ca13852ab4dd1cfa14dbad21f9 Mon Sep 17 00:00:00 2001
From: Julien Malik <julien.malik@c-s.fr>
Date: Mon, 11 Jul 2011 10:20:31 +0200
Subject: [PATCH] COMP: fix compilation with VC2010

---
 .../OssimAdapters/otbMapProjectionAdapter.cxx                 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Code/UtilitiesAdapters/OssimAdapters/otbMapProjectionAdapter.cxx b/Code/UtilitiesAdapters/OssimAdapters/otbMapProjectionAdapter.cxx
index 0853acf083..926b1962a7 100644
--- a/Code/UtilitiesAdapters/OssimAdapters/otbMapProjectionAdapter.cxx
+++ b/Code/UtilitiesAdapters/OssimAdapters/otbMapProjectionAdapter.cxx
@@ -118,7 +118,7 @@ std::string MapProjectionAdapter::GetParameter(const std::string& key) const
   // Please refer to the note in the header filer
   // we do NOT want to read from m_ParameterStore here!
 
-  std::string projectionName = this->GetMapProjection()->getClassName();
+  std::string projectionName = this->GetMapProjection()->getClassName().string();
 
   // Start by matching generic parameters
   const ossimMapProjection* projection = dynamic_cast<const ossimMapProjection*>(this->GetMapProjection());
@@ -295,7 +295,7 @@ void MapProjectionAdapter::ApplyParametersToProjection()
 {
   // Start by identifying the projection, that will be necessary for
   // the casting.
-  std::string projectionName = this->GetMapProjection()->getClassName();
+  std::string projectionName = this->GetMapProjection()->getClassName().string();
 
   StoreType::const_iterator it;
 
-- 
GitLab