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

New commits:
commit a55dcfde0a0f90096f6a250c1d71abacfa9cc23d
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sun Oct 16 11:54:44 2022 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Oct 25 15:50:41 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>
    Signed-off-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141776

diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx
index 9ab7291e3bfc..a4579d1f81db 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