Skip to content

Commit f82bb1f

Browse files
committed
STYLE: Use const_cast instead of C cast
1 parent 87380f8 commit f82bb1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/itkArrivalFunctionToPathFilter.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ class ITK_TEMPLATE_EXPORT ArrivalFunctionToPathCommand : public itk::Command
6363
/** Execute */
6464
void Execute(itk::Object *caller, const itk::EventObject & event) override
6565
{
66-
Execute( (const itk::Object *)caller, event);
66+
const itk::Object * constCaller = const_cast< const itk::Object * >( caller );
67+
Execute( constCaller, event);
6768
}
6869

6970
/** Execute */

0 commit comments

Comments
 (0)