Skip to content

Commit 3b40d22

Browse files
committed
STYLE: Use auto for variable type matches the type of the initializer expression
This check is responsible for using the auto type specifier for variable declarations to improve code readability and maintainability. The auto type specifier will only be introduced in situations where the variable type matches the type of the initializer expression. In other words auto should deduce the same type that was originally spelled in the source
1 parent fab4d37 commit 3b40d22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/itkArrivalFunctionToPathFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ITK_TEMPLATE_EXPORT ArrivalFunctionToPathCommand : public itk::Command
6464
void
6565
Execute(itk::Object * caller, const itk::EventObject & event) override
6666
{
67-
const itk::Object * constCaller = const_cast<const itk::Object *>(caller);
67+
const auto * constCaller = const_cast<const itk::Object *>(caller);
6868
Execute(constCaller, event);
6969
}
7070

0 commit comments

Comments
 (0)