fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include <utility>
|
||||
#include "ui_mainwindow.h"
|
||||
#include "sortfilter.h"
|
||||
#include <QCloseEvent>
|
||||
@@ -250,7 +251,7 @@ void MainWindow::onActionOpen()
|
||||
m_cryptState = CryptState::Encrypted;
|
||||
}
|
||||
|
||||
for (const LtsLicence::Licence &lic : qAsConst(licVec))
|
||||
for (const LtsLicence::Licence &lic : std::as_const(licVec))
|
||||
{
|
||||
m_licences.insert(lic.name, lic);
|
||||
insertRow(lic, m_licencesModel->rowCount());
|
||||
@@ -330,7 +331,7 @@ void MainWindow::onActionSave()
|
||||
|
||||
QVector<LtsLicence::Licence> licVec;
|
||||
licVec.reserve(m_licences.size());
|
||||
for (const LtsLicence::Licence &lic : qAsConst(m_licences))
|
||||
for (const LtsLicence::Licence &lic : std::as_const(m_licences))
|
||||
licVec += lic;
|
||||
QByteArray licenceBa = LtsLicence::writeUnencryptedLicences(licVec);
|
||||
|
||||
|
||||
Reference in new issue
Block a user