diff options
-rw-r--r-- | tools/source/stream/stream.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index 1c6bf5e32dcc..f2aed5da6174 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -362,13 +362,10 @@ void SvStream::SetError( ErrCode nErrorCode ) void SvStream::SetEndian( SvStreamEndian nNewFormat ) { m_nEndian = nNewFormat; - m_isSwap = false; #ifdef OSL_BIGENDIAN - if (m_nEndian == SvStreamEndian::LITTLE) - m_isSwap = true; + m_isSwap = m_nEndian == SvStreamEndian::LITTLE; #else - if (m_nEndian == SvStreamEndian::BIG) - m_isSwap = true; + m_isSwap = m_nEndian == SvStreamEndian::BIG; #endif } |