Skip to content

Commit

Permalink
Merge pull request RTKConsortium#281 from SimonRit/DataObject_constness
Browse files Browse the repository at this point in the history
COMP: fix constness following InsightSoftwareConsortium/ITK@42bfdd5a4
  • Loading branch information
SimonRit authored Dec 19, 2019
2 parents ab3925e + b5a199c commit 5223aa6
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 5223aa6

Please sign in to comment.