Skip to content
Snippets Groups Projects
Commit b3479f43 authored by Julien Michel's avatar Julien Michel
Browse files

COMP: Need to move one check inside the #ifdef block

parent 97b364af
No related branches found
No related tags found
No related merge requests found
......@@ -145,9 +145,9 @@ void otb::ogr::Feature::SetGeometryDirectly(UniqueGeometryPtr geometry)
CheckInvariants();
#if !defined(NDEBUG)
OGRGeometry * g = geometry.get();
itkAssertOrThrowMacro((m_Feature->GetGeometryRef() == g), "The new geometry hasn't been set as expected");
#endif
UncheckedSetGeometryDirectly(otb::move(geometry));
itkAssertOrThrowMacro((m_Feature->GetGeometryRef() == g), "The new geometry hasn't been set as expected");
itkAssertOrThrowMacro(!geometry, "UniqueGeometryPtr hasn't released its pointer");
}
......
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