From 0821bb9e8a9ea8c723b6bdfd13558a6f3dfa0940 Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@orfeo-toolbox.org> Date: Mon, 12 Oct 2015 15:28:48 +0200 Subject: [PATCH] ENH: Avoid explicit calls to OGRVersionProxy member types --- .../Applications/AppSegmentation/app/otbSegmentation.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Modules/Applications/AppSegmentation/app/otbSegmentation.cxx b/Modules/Applications/AppSegmentation/app/otbSegmentation.cxx index 73fdc8c604..8015f13648 100644 --- a/Modules/Applications/AppSegmentation/app/otbSegmentation.cxx +++ b/Modules/Applications/AppSegmentation/app/otbSegmentation.cxx @@ -675,10 +675,8 @@ private: //and recomputed FID for each features (without holes). //Note : the GetDriver() Method has not been encapsulated in otb::ogr::DataSource, //so we must access the OGR pointer by using .ogr() - - otb::OGRVersionProxy::GDALDatasetType & gdalDS = ogrDS->ogr(); - otb::OGRVersionProxy::GDALDriverType * gdalDriver = gdalDS.GetDriver(); - std::string driverName(gdalDriver->GetName()); + + std::string driverName(ogrDS->ogr().GetDriver()->GetName()); if ( driverName.find("ESRI Shapefile") != std::string::npos) { otbAppLogINFO(<<"REPACK the Shapefile ..."<<std::endl); -- GitLab