Skip to content
Snippets Groups Projects
Commit 9731a78b authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

WARNING: avoid double not logical evaluation (clang warning)

parent 2a4858ea
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ ReprojectTransformationFunctor::operator()(OGRGeometry const* in) const
if (out)
{
const OGRErr err = out->transform(m_reprojector.get());
if (!err != OGRERR_NONE)
if (err == OGRERR_NONE)
{
itkGenericExceptionMacro(<< "Cannot reproject a geometry: " << CPLGetLastErrorMsg());
}
......@@ -102,6 +102,7 @@ struct Options
for (int a=1; a!=argc; ++a)
{
std::cout << "argv[a] " << argv[a] << std::endl;
if (!strcmp(argv[a], "-wkt"))
wkt = argv[a];
else if (!strcmp(argv[a], "-"))
......
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