[Libreoffice-commits] core.git: sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Oct 22 10:40:19 UTC 2018
sw/source/core/undo/SwUndoFmt.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ceaf6f7a0241e7229e75bbe92cf04efc8aa7b8ad
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Sun Oct 21 22:50:37 2018 +0200
Commit: Xisco FaulĂ <xiscofauli at libreoffice.org>
CommitDate: Mon Oct 22 12:39:55 2018 +0200
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 at libreoffice.org>
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())
More information about the Libreoffice-commits
mailing list