summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-05-01 12:59:21 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2016-05-01 12:45:02 +0000
commita47ed7a765f815492ce743d609410b0f6c92e18e (patch)
tree064366326a4d186de971f03b857a551af79af3c9 /sw
parent998adf0b8b82126d6ff00f1d74a10865245a4bc8 (diff)
loplugin:simplifybool in sw
Change-Id: I528f631165a618a70c3143c56273d8513b2cc5d2 Reviewed-on: https://gerrit.libreoffice.org/24554 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/undo/rolbck.cxx2
1 files changed, 1 insertions, 1 deletions
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<SwHistoryResetText const*>(pHint));
- return (pReset) ? pReset->GetWhich() == nExpected : false;
+ return pReset && (pReset->GetWhich() == nExpected);
}) != m_pHistory->m_SwpHstry.end());
}
}