summaryrefslogtreecommitdiff
path: root/sw/source/core/undo
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2018-10-21 22:50:37 +0200
committerXisco FaulĂ­ <xiscofauli@libreoffice.org>2018-10-22 12:39:55 +0200
commitceaf6f7a0241e7229e75bbe92cf04efc8aa7b8ad (patch)
tree42b690ea1a019e7ab694c5c2f765d64494322a88 /sw/source/core/undo
parenta8712656dbd3a48d848dff1619622b8400e075f8 (diff)
tdf#120703 (PVS): Recurring check.
V571 The 'pNew' condition was already verified in line 47. Change-Id: Ib6b6a48f8c565ee28bbbaa8846f549639b6291be Reviewed-on: https://gerrit.libreoffice.org/62159 Tested-by: Jenkins Reviewed-by: Xisco FaulĂ­ <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/source/core/undo')
-rw-r--r--sw/source/core/undo/SwUndoFmt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/undo/SwUndoFmt.cxx b/sw/source/core/undo/SwUndoFmt.cxx
index c9287f5f0c62..26e2f4ae0092 100644
--- a/sw/source/core/undo/SwUndoFmt.cxx
+++ b/sw/source/core/undo/SwUndoFmt.cxx
@@ -46,7 +46,7 @@ void SwUndoFormatCreate::UndoImpl(::sw::UndoRedoContext &)
{
if (pNew)
{
- if (sNewName.isEmpty() && pNew)
+ if (sNewName.isEmpty())
sNewName = pNew->GetName();
if (!sNewName.isEmpty())