Skip to content

Commit 5da18d4

Browse files
committed
STYLE: Update m_Quiet initialization for compiler-specific behavior
Refactor `m_Quiet` member variable initialization using preprocessor directives to accommodate `_COMPILER_VERSION == 730` condition, improving code maintainability and clarity. The _COMPILER_VERSION == 730 conditional compilation was added in e1fdf51 on 2004-09-29, and likely corresponds to MIPSpro version 7.3.0 compiler work-arounds.
1 parent 8f65060 commit 5da18d4

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Modules/Core/Common/include/itkSimpleFilterWatcher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ class ITKCommon_EXPORT SimpleFilterWatcher
299299
TimeProbe m_TimeProbe{};
300300
int m_Steps{ 0 };
301301
int m_Iterations{ 0 };
302-
bool m_Quiet{ false };
303302
bool m_TestAbort{ false };
303+
bool m_Quiet{ false };
304304
std::string m_Comment{};
305305
itk::ProcessObject::Pointer m_Process{};
306306
std::mutex m_ProgressOutput{};

Modules/Core/Common/src/itkSimpleFilterWatcher.cxx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@
3030
namespace itk
3131
{
3232
SimpleFilterWatcher::SimpleFilterWatcher(ProcessObject * o, const char * comment)
33-
#if defined(_COMPILER_VERSION) && (_COMPILER_VERSION == 730)
34-
: m_Quiet(true);
35-
#else
36-
: m_Quiet(false)
37-
#endif
38-
, m_Comment(comment), m_Process{ o } { this->CreateCommands(); }
33+
: m_Comment(comment)
34+
, m_Process{ o }
35+
{
36+
this->CreateCommands();
37+
}
3938

4039
SimpleFilterWatcher::SimpleFilterWatcher()
4140
: m_Comment("Not watching an object")

0 commit comments

Comments
 (0)