Commit 90a6d237 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

ENH: use boost iequals for insensitive case comparison instead of performing two comparisons.

parent 60156b42
Pipeline #4001 failed with stages
in 80 minutes and 20 seconds
......@@ -60,6 +60,7 @@
#include "otbSensorModelAdapter.h"
#include <memory>
#include <boost/scoped_ptr.hpp>
#include <boost/algorithm/string/predicate.hpp>
namespace otb
......@@ -351,7 +352,7 @@ ImageKeywordlist ReadGeometryFromRPCTag(const std::string& filename)
// to the header file"
// No driver can open hdr file anyway.
std::string extension = itksys::SystemTools::GetFilenameLastExtension(filename);
if ((extension == ".HDR") || (extension == ".hdr"))
if (boost::iequals(extension, ".hdr"))
return otb_kwl;
Supports Markdown
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