From eedbfe9b49aad76a8b32872474a645cdf74c6f1e 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 652e5f714..279c408c3 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()