sw/source/core/undo/rolbck.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a47ed7a765f815492ce743d609410b0f6c92e18e
Author: Jochen Nitschke <j.nitschke+loger...@ok.de>
Date:   Sun May 1 12:59:21 2016 +0200

    loplugin:simplifybool in sw
    
    Change-Id: I528f631165a618a70c3143c56273d8513b2cc5d2
    Reviewed-on: https://gerrit.libreoffice.org/24554
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Jochen Nitschke <j.nitschke+loger...@ok.de>

diff --git a/sw/source/core/undo/rolbck.cxx b/sw/source/core/undo/rolbck.cxx
index a8ea84e..6d21b64 100644
--- a/sw/source/core/undo/rolbck.cxx
+++ b/sw/source/core/undo/rolbck.cxx
@@ -1326,7 +1326,7 @@ bool SwRegHistory::InsertItems( const SfxItemSet& rSet,
                 [nExpected](SwHistoryHint *const pHint) -> bool {
                     SwHistoryResetText const*const pReset(
                             dynamic_cast<SwHistoryResetText const*>(pHint));
-                    return (pReset) ? pReset->GetWhich() == nExpected : false;
+                    return pReset && (pReset->GetWhich() == nExpected);
                 }) != m_pHistory->m_SwpHstry.end());
         }
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to