Skip to content
Snippets Groups Projects
Commit 9f8eed39 authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

BUG: mantis 1504 - use implicite conversion of SmartPointer to const pointer

parent b220ac18
No related branches found
No related tags found
Loading
......@@ -304,15 +304,12 @@ StreamingWarpImageFilter<TInputImage, TOutputImage, TDisplacementField>
const PixelType paddingValue = this->GetEdgePaddingValue();
OutputImagePointerType outputPtr = this->GetOutput();
// ITK 4.13 fix const correctness of GetDisplacementField. Use ITK version
// number for backward compatibility
// ITK 4.13 fix const correctness of GetDisplacementField.
// Related commit in ITK: https://github.com/InsightSoftwareConsortium/ITK/commit/0070848b91baf69f04893bc3ce85bcf110c3c63a
#if (ITK_VERSION_MAJOR >= 4 && ITK_VERSION_MINOR >= 13)
// DisplacementFieldPointerType fieldPtr = this->GetDisplacementField();
const DisplacementFieldType * fieldPtr = this->GetDisplacementField();
#else
DisplacementFieldPointerType fieldPtr = this->GetDisplacementField();
#endif
DisplacementFieldRegionType defRegion = fieldPtr->GetLargestPossibleRegion();
......
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