forked from qt-creator/qt-creator
Don't create a temporary list of values for qDeleteAll
It's enough to pass QHash as an input for qDeleteAll, it will delete all values and won't touch keys. Change-Id: I9b00963888ac780f74eabdf59ad02890a042a0d2 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -172,7 +172,7 @@ AutotestPluginPrivate::AutotestPluginPrivate()
|
|||||||
AutotestPluginPrivate::~AutotestPluginPrivate()
|
AutotestPluginPrivate::~AutotestPluginPrivate()
|
||||||
{
|
{
|
||||||
if (!s_projectSettings.isEmpty()) {
|
if (!s_projectSettings.isEmpty()) {
|
||||||
qDeleteAll(s_projectSettings.values());
|
qDeleteAll(s_projectSettings);
|
||||||
s_projectSettings.clear();
|
s_projectSettings.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user