mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 23:55:13 -05:00
Use qDeleteAll() for brevity
This commit is contained in:
parent
de131d1f6d
commit
6627b0c377
@ -15,6 +15,7 @@
|
|||||||
// You should have received a copy of the GNU General Public License //
|
// You should have received a copy of the GNU General Public License //
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
///////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
#include <QtAlgorithms>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
@ -34,29 +35,11 @@ MainSettings::MainSettings() :
|
|||||||
|
|
||||||
MainSettings::~MainSettings()
|
MainSettings::~MainSettings()
|
||||||
{
|
{
|
||||||
for (int i = 0; i < m_presets.count(); ++i)
|
qDeleteAll(m_presets);
|
||||||
{
|
qDeleteAll(m_commands);
|
||||||
delete m_presets[i];
|
qDeleteAll(m_featureSetPresets);
|
||||||
}
|
qDeleteAll(m_pluginPresets);
|
||||||
|
qDeleteAll(m_configurations);
|
||||||
for (int i = 0; i < m_commands.count(); ++i)
|
|
||||||
{
|
|
||||||
delete m_commands[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < m_featureSetPresets.count(); ++i)
|
|
||||||
{
|
|
||||||
delete m_featureSetPresets[i];
|
|
||||||
}
|
|
||||||
for (int i = 0; i < m_pluginPresets.count(); ++i)
|
|
||||||
{
|
|
||||||
delete m_pluginPresets[i];
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < m_configurations.count(); ++i)
|
|
||||||
{
|
|
||||||
delete m_configurations[i];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString MainSettings::getFileLocation() const
|
QString MainSettings::getFileLocation() const
|
||||||
|
Loading…
Reference in New Issue
Block a user