tools/source/stream/stream.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit f4e7738112eb4a374186a99953a74a5288bee4b0
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Oct 16 11:54:44 2022 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sun Oct 16 13:13:15 2022 +0200

    Simplify a bit
    
    Change-Id: Ia983d24c539ab37bcc6457630634142cd5826056
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141399
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

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
 }
 

Reply via email to