Commit fb1a4876 authored by Antoine Regimbeau's avatar Antoine Regimbeau

REFAC: take Luc comments into account (2) for OGRExtendedFileName class

parent 037d422e
......@@ -45,7 +45,7 @@ public:
typedef ExtendedFilenameHelper Superclass;
typedef Superclass::OptionMapType OptionMapType;
typedef OptionMapType::iterator MapIteratorType;
typedef OptionMapType::const_iterator ConstMapIteratorType;
typedef std::vector<std::string> GDALOptionType;
itkTypeMacro(OGRExtendedFilenameToOptions, otb::ExtendedFilenameHelper);
......
......@@ -56,9 +56,9 @@ SetExtendedFileName(const char *extFname)
Superclass::SetExtendedFileName(extFname);
m_HasFileName = true;
OptionMapType map = GetOptionMap();
const OptionMapType & map = GetOptionMap();
MapIteratorType it;
ConstMapIteratorType it;
for ( it=map.begin(); it != map.end(); it++ )
{
std::vector<std::string> tmp;
......@@ -144,9 +144,7 @@ bool
OGRExtendedFilenameToOptions::
HasGDALLayerOption() const
{
if ( m_LayerOptions.gdalOptions.empty() )
return false;
return true;
return ! m_LayerOptions.gdalOptions.empty() ;
}
OGRExtendedFilenameToOptions::
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment