chore(cpn): cleanup build warnings (#5145)
This commit is contained in:
@@ -33,13 +33,12 @@ CalibrationPanel::CalibrationPanel(QWidget * parent, GeneralSettings & generalSe
|
|||||||
|
|
||||||
TableLayout * tableLayout = new TableLayout(this, maxrows, headerLabels);
|
TableLayout * tableLayout = new TableLayout(this, maxrows, headerLabels);
|
||||||
|
|
||||||
for (int i = 0, row = 0; i < maxinputs; i++) {
|
for (int i = 0; i < maxinputs; i++) {
|
||||||
if (!Boards::isInputCalibrated(i))
|
if (!Boards::isInputCalibrated(i))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
GeneralSettings::InputCalib &calib = generalSettings.inputConfig[i].calib;
|
GeneralSettings::InputCalib &calib = generalSettings.inputConfig[i].calib;
|
||||||
int col = 0;
|
int col = 0;
|
||||||
row++;
|
|
||||||
QLabel * label = new QLabel(this);
|
QLabel * label = new QLabel(this);
|
||||||
label->setText(Boards::getInputName(i));
|
label->setText(Boards::getInputName(i));
|
||||||
tableLayout->addWidget(i, col++, label);
|
tableLayout->addWidget(i, col++, label);
|
||||||
|
|||||||
@@ -915,7 +915,7 @@ void MdiChild::pasteModelData(const QMimeData * mimeData, const QModelIndex row,
|
|||||||
|
|
||||||
bool modified = false;
|
bool modified = false;
|
||||||
int modelIdx = modelsListModel->getModelIndex(row);
|
int modelIdx = modelsListModel->getModelIndex(row);
|
||||||
unsigned inserts = 0;
|
// unsigned inserts = 0;
|
||||||
QVector<int> deletesList;
|
QVector<int> deletesList;
|
||||||
|
|
||||||
// Force DnD moves from other file windows to be copy actions because we don't want to delete our models.
|
// Force DnD moves from other file windows to be copy actions because we don't want to delete our models.
|
||||||
@@ -942,7 +942,7 @@ void MdiChild::pasteModelData(const QMimeData * mimeData, const QModelIndex row,
|
|||||||
ok = insertModelRows(modelIdx, 1);
|
ok = insertModelRows(modelIdx, 1);
|
||||||
if (ok) {
|
if (ok) {
|
||||||
radioData.models[modelIdx] = modelsList[i];
|
radioData.models[modelIdx] = modelsList[i];
|
||||||
++inserts;
|
// ++inserts;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!deletesList.contains(modelIdx)) {
|
else if (!deletesList.contains(modelIdx)) {
|
||||||
@@ -970,7 +970,7 @@ void MdiChild::pasteModelData(const QMimeData * mimeData, const QModelIndex row,
|
|||||||
ok = insertModelRows(modelIdx, 1);
|
ok = insertModelRows(modelIdx, 1);
|
||||||
if (ok) {
|
if (ok) {
|
||||||
radioData.models[modelIdx] = modelsList[i];
|
radioData.models[modelIdx] = modelsList[i];
|
||||||
++inserts;
|
// ++inserts;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (msgBox.clickedButton() == cancelButton) {
|
else if (msgBox.clickedButton() == cancelButton) {
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ class RepoBuild : public Repo
|
|||||||
const QString & path, const QString & nightly, const int resultsPerPage);
|
const QString & path, const QString & nightly, const int resultsPerPage);
|
||||||
virtual ~RepoBuild();
|
virtual ~RepoBuild();
|
||||||
|
|
||||||
const QString urlAsset(const int assetId) const;
|
const QString urlAsset(const int assetId) const override;
|
||||||
const QString urlAssets(const int releaseId) const { return ""; }
|
const QString urlAssets(const int releaseId) const override { return ""; }
|
||||||
const QString urlContent(const QString & filename) const { return ""; }
|
const QString urlContent(const QString & filename) const override { return ""; }
|
||||||
const QString urlJobs() const;
|
const QString urlJobs() const override;
|
||||||
const QString urlReleases() const;
|
const QString urlReleases() const override;
|
||||||
const QString urlStatus() const;
|
const QString urlStatus() const override;
|
||||||
|
|
||||||
const UpdateNetwork::DownloadDataType assetDownloadDataType() const override { return UpdateNetwork::DDT_Build_SaveToFile; }
|
const UpdateNetwork::DownloadDataType assetDownloadDataType() const override { return UpdateNetwork::DDT_Build_SaveToFile; }
|
||||||
const UpdateNetwork::DownloadDataType assetContentDataType() const override { return UpdateNetwork::DDT_Unknown; }
|
const UpdateNetwork::DownloadDataType assetContentDataType() const override { return UpdateNetwork::DDT_Unknown; }
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ class RepoGitHub : public Repo
|
|||||||
const QString & path, const QString & nightly, const int resultsPerPage);
|
const QString & path, const QString & nightly, const int resultsPerPage);
|
||||||
virtual ~RepoGitHub();
|
virtual ~RepoGitHub();
|
||||||
|
|
||||||
const QString urlAsset(const int assetId) const;
|
const QString urlAsset(const int assetId) const override;
|
||||||
const QString urlAssets(const int releaseId) const;
|
const QString urlAssets(const int releaseId) const override;
|
||||||
const QString urlContent(const QString & filename) const;
|
const QString urlContent(const QString & filename) const override;
|
||||||
const QString urlJobs() const { return ""; }
|
const QString urlJobs() const override { return ""; }
|
||||||
const QString urlReleases() const;
|
const QString urlReleases() const override;
|
||||||
const QString urlStatus() const { return ""; }
|
const QString urlStatus() const override { return ""; }
|
||||||
|
|
||||||
const UpdateNetwork::DownloadDataType assetDownloadDataType() const override { return UpdateNetwork::DDT_GitHub_SaveToFile; }
|
const UpdateNetwork::DownloadDataType assetDownloadDataType() const override { return UpdateNetwork::DDT_GitHub_SaveToFile; }
|
||||||
const UpdateNetwork::DownloadDataType assetContentDataType() const override { return UpdateNetwork::DDT_GitHub_Content; }
|
const UpdateNetwork::DownloadDataType assetContentDataType() const override { return UpdateNetwork::DDT_GitHub_Content; }
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ constexpr char STATUS_UNKNOWN[] {"STATUS_UNKNOWN"};
|
|||||||
constexpr char STATUS_WAITING_FOR_BUILD[] {"WAITING_FOR_BUILD"};
|
constexpr char STATUS_WAITING_FOR_BUILD[] {"WAITING_FOR_BUILD"};
|
||||||
constexpr char STATUS_BUILD_IN_PROGRESS[] {"BUILD_IN_PROGRESS"};
|
constexpr char STATUS_BUILD_IN_PROGRESS[] {"BUILD_IN_PROGRESS"};
|
||||||
constexpr char STATUS_BUILD_SUCCESS[] {"BUILD_SUCCESS"};
|
constexpr char STATUS_BUILD_SUCCESS[] {"BUILD_SUCCESS"};
|
||||||
constexpr char STATUS_BUILD_ERROR[] {"BUILD_ERROR"};
|
// constexpr char STATUS_BUILD_ERROR[] {"BUILD_ERROR"};
|
||||||
|
|
||||||
UpdateCloudBuild::UpdateCloudBuild(QWidget * parent) :
|
UpdateCloudBuild::UpdateCloudBuild(QWidget * parent) :
|
||||||
UpdateInterface(parent, CID_CloudBuild, tr("CloudBuild"), Repo::REPO_TYPE_BUILD,
|
UpdateInterface(parent, CID_CloudBuild, tr("CloudBuild"), Repo::REPO_TYPE_BUILD,
|
||||||
|
|||||||
Reference in New Issue
Block a user