[Libreoffice-commits] core.git: sw/source
Jochen Nitschke
j.nitschke+logerrit at ok.de
Sun May 1 12:45:28 UTC 2016
sw/source/core/undo/rolbck.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a47ed7a765f815492ce743d609410b0f6c92e18e
Author: Jochen Nitschke <j.nitschke+logerrit at 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 <ci at libreoffice.org>
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at 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());
}
}
More information about the Libreoffice-commits
mailing list