diff --git a/Modules/Core/Common/src/itkFileOutputWindow.cxx b/Modules/Core/Common/src/itkFileOutputWindow.cxx index 8254bf78965..44984d849c0 100644 --- a/Modules/Core/Common/src/itkFileOutputWindow.cxx +++ b/Modules/Core/Common/src/itkFileOutputWindow.cxx @@ -33,7 +33,6 @@ FileOutputWindow::FileOutputWindow() FileOutputWindow::~FileOutputWindow() { delete m_Stream; - m_Stream = nullptr; } void diff --git a/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshBaseIterator.h b/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshBaseIterator.h index 0e32f3862ee..64631eaa881 100644 --- a/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshBaseIterator.h +++ b/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshBaseIterator.h @@ -275,9 +275,7 @@ class ITK_TEMPLATE_EXPORT QuadEdgeMeshIteratorGeom : public QuadEdgeMeshIterator using OriginRefType = typename QuadEdgeType::OriginRefType; public: - QuadEdgeMeshIteratorGeom(QuadEdgeType * e = (QuadEdgeType *)nullptr, - int op = Superclass::OperatorOnext, - bool start = true) + QuadEdgeMeshIteratorGeom(QuadEdgeType * e = nullptr, int op = Superclass::OperatorOnext, bool start = true) : Superclass(e, op, start) {} diff --git a/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshFrontIterator.h b/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshFrontIterator.h index 9072eda96f1..7ddc9d96581 100644 --- a/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshFrontIterator.h +++ b/Modules/Core/QuadEdgeMesh/include/itkQuadEdgeMeshFrontIterator.h @@ -32,10 +32,7 @@ using FrontIterator = QuadEdgeMeshFrontIterator; \ using ConstFrontIterator = QuadEdgeMeshConstFrontIterator; \ \ - virtual FrontIterator BeginFront(QEPrimalType * seed = (QEPrimalType *)nullptr) \ - { \ - return (FrontIterator(this, true, seed)); \ - } \ + virtual FrontIterator BeginFront(QEPrimalType * seed = nullptr) { return (FrontIterator(this, true, seed)); } \ \ virtual ConstFrontIterator BeginFront(QEPrimalType * seed) const { return (ConstFrontIterator(this, true, seed)); } \ \ @@ -149,9 +146,7 @@ class ITK_TEMPLATE_EXPORT QuadEdgeMeshFrontBaseIterator public: /** Object creation methods. */ - QuadEdgeMeshFrontBaseIterator(MeshType * mesh = (MeshType *)nullptr, - bool start = true, - QEType * seed = (QEType *)nullptr); + QuadEdgeMeshFrontBaseIterator(MeshType * mesh = nullptr, bool start = true, QEType * seed = nullptr); virtual ~QuadEdgeMeshFrontBaseIterator(); Self & @@ -242,7 +237,7 @@ class ITK_TEMPLATE_EXPORT QuadEdgeMeshFrontIterator : public QuadEdgeMeshFrontBa public: /** Object creation methods. */ - QuadEdgeMeshFrontIterator(MeshType * mesh = (MeshType *)0, bool start = true, QEType * seed = (QEType *)nullptr) + QuadEdgeMeshFrontIterator(MeshType * mesh = (MeshType *)0, bool start = true, QEType * seed = nullptr) : Superclass(mesh, start, seed) {} ~QuadEdgeMeshFrontIterator() override = default;