diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2018-10-21 22:50:37 +0200 |
---|---|---|
committer | Xisco FaulĂ <xiscofauli@libreoffice.org> | 2018-10-22 12:39:55 +0200 |
commit | ceaf6f7a0241e7229e75bbe92cf04efc8aa7b8ad (patch) | |
tree | 42b690ea1a019e7ab694c5c2f765d64494322a88 | |
parent | a8712656dbd3a48d848dff1619622b8400e075f8 (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>
-rw-r--r-- | sw/source/core/undo/SwUndoFmt.cxx | 2 |
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()) |