From 0dc196dc02275356f53b20373fd53cee0e0fa227 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 9 Oct 2021 09:43:05 +1100 Subject: Fix warning from Cppcheck2.6. --- gtk/ScintillaGTK.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 713331569..cf453bd6e 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -3044,9 +3044,7 @@ void ScintillaGTK::SetDocPointer(Document *document) { sciAccessible = ScintillaGTKAccessible::FromAccessible(accessible); if (sciAccessible && pdoc) { oldDoc = pdoc; - if (oldDoc) { - oldDoc->AddRef(); - } + oldDoc->AddRef(); } } -- cgit v1.2.3