Skip to content

Commit c73a77d

Browse files
committed
COMP: Remove GetMTime method
To address: d:\a\1\s\include\itkTwoProjectionImageRegistrationMethod.h(204): error C2555: 'itk::TwoProjectionImageRegistrationMethod<InternalImageType,InternalImageType>::GetMTime': overriding virtual function return type differs and is not covariant from 'itk::Object::GetMTime' If the Set macros are used correctly, this is not necessary.
1 parent 4277bc5 commit c73a77d

File tree

2 files changed

+0
-69
lines changed

2 files changed

+0
-69
lines changed

include/itkTwoProjectionImageRegistrationMethod.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,6 @@ class TwoProjectionImageRegistrationMethod : public ProcessObject
199199
using Superclass::MakeOutput;
200200
DataObjectPointer MakeOutput( DataObjectPointerArraySizeType idx) override;
201201

202-
/** Method to return the latest modified time of this object or
203-
* any of its cached ivars */
204-
unsigned long GetMTime() const override;
205-
206202
protected:
207203
TwoProjectionImageRegistrationMethod();
208204
~TwoProjectionImageRegistrationMethod() override {};

include/itkTwoProjectionImageRegistrationMethod.hxx

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -58,71 +58,6 @@ TwoProjectionImageRegistrationMethod<TFixedImage,TMovingImage>
5858
}
5959

6060

61-
template < typename TFixedImage, typename TMovingImage >
62-
unsigned long
63-
TwoProjectionImageRegistrationMethod<TFixedImage,TMovingImage>
64-
::GetMTime() const
65-
{
66-
unsigned long mtime = Superclass::GetMTime();
67-
unsigned long m;
68-
69-
70-
// Some of the following should be removed once ivars are put in the
71-
// input and output lists
72-
73-
if (m_Transform)
74-
{
75-
m = m_Transform->GetMTime();
76-
mtime = (m > mtime ? m : mtime);
77-
}
78-
79-
if (m_Interpolator1)
80-
{
81-
m = m_Interpolator1->GetMTime();
82-
mtime = (m > mtime ? m : mtime);
83-
}
84-
85-
if (m_Interpolator2)
86-
{
87-
m = m_Interpolator2->GetMTime();
88-
mtime = (m > mtime ? m : mtime);
89-
}
90-
91-
if (m_Metric)
92-
{
93-
m = m_Metric->GetMTime();
94-
mtime = (m > mtime ? m : mtime);
95-
}
96-
97-
if (m_Optimizer)
98-
{
99-
m = m_Optimizer->GetMTime();
100-
mtime = (m > mtime ? m : mtime);
101-
}
102-
103-
if (m_FixedImage1)
104-
{
105-
m = m_FixedImage1->GetMTime();
106-
mtime = (m > mtime ? m : mtime);
107-
}
108-
109-
if (m_FixedImage2)
110-
{
111-
m = m_FixedImage2->GetMTime();
112-
mtime = (m > mtime ? m : mtime);
113-
}
114-
115-
if (m_MovingImage)
116-
{
117-
m = m_MovingImage->GetMTime();
118-
mtime = (m > mtime ? m : mtime);
119-
}
120-
121-
return mtime;
122-
123-
}
124-
125-
12661
template < typename TFixedImage, typename TMovingImage >
12762
void
12863
TwoProjectionImageRegistrationMethod<TFixedImage,TMovingImage>

0 commit comments

Comments
 (0)