KDEConnectPluginConfig: Remove unneeded check for delete
Deleting a nullptr is a noop
This commit is contained in:
parent
aeb1d7f4cc
commit
eedbfe9b49
1 changed files with 1 additions and 3 deletions
|
@ -40,10 +40,8 @@ KdeConnectPluginConfig *KdeConnectPlugin::config() const
|
||||||
|
|
||||||
KdeConnectPlugin::~KdeConnectPlugin()
|
KdeConnectPlugin::~KdeConnectPlugin()
|
||||||
{
|
{
|
||||||
if (d->m_config) {
|
|
||||||
delete d->m_config;
|
delete d->m_config;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const Device *KdeConnectPlugin::device()
|
const Device *KdeConnectPlugin::device()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue