fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
@@ -9,6 +9,7 @@
|
||||
*/
|
||||
|
||||
#include "samplemodel.h"
|
||||
#include <utility>
|
||||
#include <QMimeData>
|
||||
#include <QtCore/QStringList>
|
||||
#include <QDomDocument>
|
||||
@@ -57,7 +58,7 @@ SampleModel::SampleModel(QObject *parent)
|
||||
|
||||
SampleModel::~SampleModel()
|
||||
{
|
||||
for (const SampleData &sd : qAsConst(m_data))
|
||||
for (const SampleData &sd : std::as_const(m_data))
|
||||
delete sd.dialog;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
*/
|
||||
|
||||
#include "topic_tree_model.h"
|
||||
#include <utility>
|
||||
#include <QtCore/QBuffer>
|
||||
#include <QtCore/QDataStream>
|
||||
#include <QtCore/QDateTime>
|
||||
@@ -100,7 +101,7 @@ void TopicDataModel::reset()
|
||||
|
||||
void TopicDataModel::cleanupModelIndexes()
|
||||
{
|
||||
for (const QModelIndex &idx : qAsConst(m_pathInformations))
|
||||
for (const QModelIndex &idx : std::as_const(m_pathInformations))
|
||||
{
|
||||
IndexData *id = static_cast<IndexData *>(idx.internalPointer());
|
||||
delete id;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
*/
|
||||
|
||||
#include "topicselector.h"
|
||||
#include <utility>
|
||||
#include "typecodeselectordlg.h"
|
||||
#include "nglsettings.h"
|
||||
#include "topic_tree_model.h"
|
||||
@@ -133,14 +134,14 @@ void TopicSelector::onOk()
|
||||
{
|
||||
NGLSettings::instance()->setInfoValues(m_typeCodeInfos);
|
||||
emit typeCodeInfosChanged();
|
||||
for (TypeCodeSelectorDlg *tcsd : qAsConst(m_dialogs))
|
||||
for (TypeCodeSelectorDlg *tcsd : std::as_const(m_dialogs))
|
||||
tcsd->reject();
|
||||
accept();
|
||||
}
|
||||
|
||||
void TopicSelector::onCancel()
|
||||
{
|
||||
for (TypeCodeSelectorDlg *tcsd : qAsConst(m_dialogs))
|
||||
for (TypeCodeSelectorDlg *tcsd : std::as_const(m_dialogs))
|
||||
tcsd->reject();
|
||||
reject();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user