From a47ed7a765f815492ce743d609410b0f6c92e18e Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sun, 1 May 2016 12:59:21 +0200 Subject: loplugin:simplifybool in sw Change-Id: I528f631165a618a70c3143c56273d8513b2cc5d2 Reviewed-on: https://gerrit.libreoffice.org/24554 Tested-by: Jenkins Reviewed-by: Jochen Nitschke --- sw/source/core/undo/rolbck.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/core/undo/rolbck.cxx b/sw/source/core/undo/rolbck.cxx index a8ea84ee16e6..6d21b64596bc 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(pHint)); - return (pReset) ? pReset->GetWhich() == nExpected : false; + return pReset && (pReset->GetWhich() == nExpected); }) != m_pHistory->m_SwpHstry.end()); } } -- cgit v1.2.3