From 399d279e839ce7a7896ab98656cd378209490d56 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Tue, 25 Jul 2023 21:27:22 +0200 Subject: [PATCH] KDEConnectPluginConfig: Remove unneeded check for delete Deleting a nullptr is a noop --- core/kdeconnectplugin.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/kdeconnectplugin.cpp b/core/kdeconnectplugin.cpp index f9fd472bf..eafee365a 100644 --- a/core/kdeconnectplugin.cpp +++ b/core/kdeconnectplugin.cpp @@ -40,9 +40,7 @@ KdeConnectPluginConfig *KdeConnectPlugin::config() const KdeConnectPlugin::~KdeConnectPlugin() { - if (d->m_config) { - delete d->m_config; - } + delete d->m_config; } const Device *KdeConnectPlugin::device()