From 8ad73546714a6e5b70b311b2bbcb36a70cc33ab3 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Wed, 28 Sep 2022 16:14:18 +0200 Subject: [PATCH] COMP: Fix typo (compile error) in `PhilipsRECImageIO` constructor Fixed a compile error, which appeared when enabling `Module_ITKIOPhilipsREC`: > itkPhilipsRECImageIO.cxx(390,3): error C3861: 'iff': identifier not found This obvious typo was introduced with pull request https://github.com/InsightSoftwareConsortium/ITK/pull/3664 commit 2b1b5312fadf1a156882d06dc2e7c6b2a2290044 "STYLE: Remove space between class and member names (follow-up)", and reported by Bradley Lowekamp. --- Modules/IO/PhilipsREC/src/itkPhilipsRECImageIO.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Modules/IO/PhilipsREC/src/itkPhilipsRECImageIO.cxx b/Modules/IO/PhilipsREC/src/itkPhilipsRECImageIO.cxx index cd178c35c3c..b365a740353 100644 --- a/Modules/IO/PhilipsREC/src/itkPhilipsRECImageIO.cxx +++ b/Modules/IO/PhilipsREC/src/itkPhilipsRECImageIO.cxx @@ -387,11 +387,14 @@ PhilipsRECImageIO::PhilipsRECImageIO() // Start out with file byte order == system byte order // this will be changed if we're reading a file to whatever // the file actually contains. - iff(ByteSwapper::SystemIsBigEndian()) + if (ByteSwapper::SystemIsBigEndian()) { this->m_MachineByteOrder = this->m_ByteOrder = IOByteOrderEnum::BigEndian; } - else { this->m_MachineByteOrder = this->m_ByteOrder = IOByteOrderEnum::LittleEndian; } + else + { + this->m_MachineByteOrder = this->m_ByteOrder = IOByteOrderEnum::LittleEndian; + } this->m_SliceIndex = new SliceIndexType(); }