Skip to content

Commit

Permalink
COMP: fix constness following InsightSoftwareConsortium/ITK@42bfdd5
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rit committed Dec 19, 2019
1 parent ab3925e commit b5a199c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/rtkMacro.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@
std::cerr << "Invalid requested region error triggered by " \
<< rInv->GetDataObject()->GetSource()->GetNameOfClass() << std::endl; \
} \
itk::ImageBase<3> * img; \
img = dynamic_cast<itk::ImageBase<3> *>(rInv->GetDataObject()); \
const itk::ImageBase<3> * img = dynamic_cast<const itk::ImageBase<3> *>(rInv->GetDataObject()); \
if (img) \
{ \
DD(img->GetRequestedRegion()) \
Expand Down

0 comments on commit b5a199c

Please sign in to comment.