diff --git a/Modules/Core/Common/include/itkByteSwapper.hxx b/Modules/Core/Common/include/itkByteSwapper.hxx index aaab8281b48..8f5897e44aa 100644 --- a/Modules/Core/Common/include/itkByteSwapper.hxx +++ b/Modules/Core/Common/include/itkByteSwapper.hxx @@ -81,13 +81,13 @@ ByteSwapper::SwapFromSystemToBigEndian(T * p) case 1: return; case 2: - ByteSwapper::Swap2(p); + Self::Swap2(p); return; case 4: - ByteSwapper::Swap4(p); + Self::Swap4(p); return; case 8: - ByteSwapper::Swap8(p); + Self::Swap8(p); return; default: itkGenericExceptionMacro(<< "Cannot swap number of bytes requested"); @@ -118,13 +118,13 @@ ByteSwapper::SwapRangeFromSystemToBigEndian(T * p, BufferSizeType num) case 1: return; case 2: - ByteSwapper::Swap2Range(p, num); + Self::Swap2Range(p, num); return; case 4: - ByteSwapper::Swap4Range(p, num); + Self::Swap4Range(p, num); return; case 8: - ByteSwapper::Swap8Range(p, num); + Self::Swap8Range(p, num); return; default: itkGenericExceptionMacro(<< "Cannot swap number of bytes requested"); @@ -152,13 +152,13 @@ ByteSwapper::SwapWriteRangeFromSystemToBigEndian(T * p, int num, OStreamType case 1: return; case 2: - ByteSwapper::SwapWrite2Range(p, num, fp); + Self::SwapWrite2Range(p, num, fp); return; case 4: - ByteSwapper::SwapWrite4Range(p, num, fp); + Self::SwapWrite4Range(p, num, fp); return; case 8: - ByteSwapper::SwapWrite8Range(p, num, fp); + Self::SwapWrite8Range(p, num, fp); return; default: itkGenericExceptionMacro(<< "Cannot swap number of bytes requested"); @@ -179,13 +179,13 @@ ByteSwapper::SwapFromSystemToLittleEndian(T * p) case 1: return; case 2: - ByteSwapper::Swap2(p); + Self::Swap2(p); return; case 4: - ByteSwapper::Swap4(p); + Self::Swap4(p); return; case 8: - ByteSwapper::Swap8(p); + Self::Swap8(p); return; default: itkGenericExceptionMacro(<< "Cannot swap number of bytes requested"); @@ -209,13 +209,13 @@ ByteSwapper::SwapRangeFromSystemToLittleEndian(T * p, BufferSizeType num) case 1: return; case 2: - ByteSwapper::Swap2Range(p, num); + Self::Swap2Range(p, num); return; case 4: - ByteSwapper::Swap4Range(p, num); + Self::Swap4Range(p, num); return; case 8: - ByteSwapper::Swap8Range(p, num); + Self::Swap8Range(p, num); return; default: itkGenericExceptionMacro(<< "Cannot swap number of bytes requested"); @@ -239,13 +239,13 @@ ByteSwapper::SwapWriteRangeFromSystemToLittleEndian(T * p, int num, OStreamTy case 1: return; case 2: - ByteSwapper::SwapWrite2Range(p, num, fp); + Self::SwapWrite2Range(p, num, fp); return; case 4: - ByteSwapper::SwapWrite4Range(p, num, fp); + Self::SwapWrite4Range(p, num, fp); return; case 8: - ByteSwapper::SwapWrite8Range(p, num, fp); + Self::SwapWrite8Range(p, num, fp); return; default: itkGenericExceptionMacro(<< "Cannot swap number of bytes requested"); @@ -478,7 +478,7 @@ ByteSwapper::SwapWrite8Range(void * ptr, BufferSizeType num, OStreamType * fp { memcpy(cpy, ptr, chunkSize * 8); - ByteSwapper::Swap8Range(cpy, chunkSize); + Self::Swap8Range(cpy, chunkSize); fp->write((char *)cpy, static_cast(8 * chunkSize)); ptr = (char *)ptr + chunkSize * 8;