Skip to content

Commit

Permalink
delete nullptr is a noop
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
3nids and m-kuhn committed Jan 16, 2023
1 parent ac8170e commit 0af509d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/settings/qgssettings.cpp
Expand Up @@ -68,8 +68,7 @@ void QgsSettings::unregisterPluginTreeElement( const QString &pluginName )
{
//QgsDebugMsg( "unregister plugin tree element" );
QgsSettingsTreeElement *pluginTreeElement = sTreePlugins->childElement( pluginName );
if ( pluginTreeElement )
delete pluginTreeElement;
delete pluginTreeElement;
}

QgsSettings::QgsSettings( const QString &organization, const QString &application, QObject *parent )
Expand Down

0 comments on commit 0af509d

Please sign in to comment.