Skip to content

Commit 7a89717

Browse files
N-Dekkerdzenanz
authored andcommitted
STYLE: Default default-constructor SimpleDataObjectDecorator
Removed obsolete "-Wmaybe-uninitialized" and Purify UMR (uninitialized memory read) workarounds.
1 parent 788e558 commit 7a89717

File tree

2 files changed

+1
-20
lines changed

2 files changed

+1
-20
lines changed

Modules/Core/Common/include/itkSimpleDataObjectDecorator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class ITK_TEMPLATE_EXPORT SimpleDataObjectDecorator : public DataObject
100100
}
101101

102102
protected:
103-
SimpleDataObjectDecorator();
103+
SimpleDataObjectDecorator() = default;
104104
~SimpleDataObjectDecorator() override = default;
105105
void
106106
PrintSelf(std::ostream & os, Indent indent) const override;

Modules/Core/Common/include/itkSimpleDataObjectDecorator.hxx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,6 @@
3232

3333
namespace itk
3434
{
35-
/**
36-
*
37-
*/
38-
template <typename T>
39-
SimpleDataObjectDecorator<T>::SimpleDataObjectDecorator()
40-
{
41-
#if defined(__GNUC__) && (__GNUC__ > 6)
42-
ITK_GCC_PRAGMA_DIAG_PUSH()
43-
ITK_GCC_PRAGMA_DIAG(ignored "-Wmaybe-uninitialized")
44-
#endif // defined( __GNUC__ ) && ( __GNUC__ > 6 )
45-
this->m_Component = ComponentType(); // initialize here to avoid Purify UMR
46-
#if defined(__GNUC__) && (__GNUC__ > 6)
47-
ITK_GCC_PRAGMA_DIAG_POP()
48-
#endif // defined( __GNUC__ ) && ( __GNUC__ > 6 )
49-
this->m_Initialized = false; // Still needed since not all objects
50-
// are initialized at construction time.
51-
// for example the itkArray.
52-
}
53-
5435
/**
5536
*
5637
*/

0 commit comments

Comments
 (0)