Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment