summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-10-16 11:54:44 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2022-10-16 13:13:15 +0200
commitf4e7738112eb4a374186a99953a74a5288bee4b0 (patch)
treef9a8c42e57e9b065f7b7df137ee95acfa21eda4a /tools
parent3398a2bc324bb00c18071374cb33f97cd9902860 (diff)
Simplify a bit
Change-Id: Ia983d24c539ab37bcc6457630634142cd5826056 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141399 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/stream/stream.cxx7
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
}