diff --git a/src/plugins/test/ZincWindow/src/zincwindowplugin.h b/src/plugins/test/ZincWindow/src/zincwindowplugin.h
index 2f090b337e..cb8a758132 100644
--- a/src/plugins/test/ZincWindow/src/zincwindowplugin.h
+++ b/src/plugins/test/ZincWindow/src/zincwindowplugin.h
@@ -62,9 +62,9 @@ class ZincWindowPlugin : public QObject, public I18nInterface,
#include "windowinterface.inl"
private:
- QAction *mZincWindowAction;
+ QAction *mZincWindowAction = nullptr;
- ZincWindowWindow *mZincWindowWindow;
+ ZincWindowWindow *mZincWindowWindow = nullptr;
};
//==============================================================================
diff --git a/src/plugins/tools/CellMLTools/src/cellmltoolsplugin.cpp b/src/plugins/tools/CellMLTools/src/cellmltoolsplugin.cpp
index 0894156ced..b1549eff50 100644
--- a/src/plugins/tools/CellMLTools/src/cellmltoolsplugin.cpp
+++ b/src/plugins/tools/CellMLTools/src/cellmltoolsplugin.cpp
@@ -300,9 +300,9 @@ void CellMLToolsPlugin::exportTo(CellMLSupport::CellmlFile::Version pVersion)
}
Core::warningMessageBox(tr("Export CellML File To %1").arg(format),
- tr("%1 could not be exported to %2%3.").arg(QDir::toNativeSeparators(fileName))
- .arg(format)
- .arg(errorMessage));
+ tr("%1 could not be exported to %2%3.").arg(QDir::toNativeSeparators(fileName),
+ format,
+ errorMessage));
}
}
@@ -445,8 +445,8 @@ bool CellMLToolsPlugin::runCommand(Command pCommand,
CellMLSupport::CellmlFileIssues cellmlFileIssues = cellmlFile->issues();
for (const auto &cellmlFileIssue : cellmlFileIssues) {
- output += QString("%1[%2] [%3:%4] %5").arg(output.isEmpty()?QString():"\n")
- .arg((cellmlFileIssue.type() == CellMLSupport::CellmlFileIssue::Type::Error)?"Error":"Warning")
+ output += QString("%1[%2] [%3:%4] %5").arg(output.isEmpty()?QString():"\n",
+ (cellmlFileIssue.type() == CellMLSupport::CellmlFileIssue::Type::Error)?"Error":"Warning")
.arg(cellmlFileIssue.line())
.arg(cellmlFileIssue.column())
.arg(Core::plainString(cellmlFileIssue.formattedMessage()));
@@ -550,9 +550,9 @@ void CellMLToolsPlugin::exportToUserDefinedFormat()
}
Core::warningMessageBox(tr("Export CellML File To User-Defined Format"),
- tr("%1 could not be exported to the user-defined format described in %2%3.").arg(QDir::toNativeSeparators(fileName))
- .arg(QDir::toNativeSeparators(userDefinedFormatFileName))
- .arg(errorMessage));
+ tr("%1 could not be exported to the user-defined format described in %2%3.").arg(QDir::toNativeSeparators(fileName),
+ QDir::toNativeSeparators(userDefinedFormatFileName),
+ errorMessage));
}
}
diff --git a/src/plugins/widget/EditorWidget/src/editorlistwidget.cpp b/src/plugins/widget/EditorWidget/src/editorlistwidget.cpp
index 4b1288e8b6..196f25f682 100644
--- a/src/plugins/widget/EditorWidget/src/editorlistwidget.cpp
+++ b/src/plugins/widget/EditorWidget/src/editorlistwidget.cpp
@@ -63,8 +63,8 @@ EditorListItem::EditorListItem(Type pType, int pLine, int pColumn,
if (pFileInfo.isEmpty()) {
setText(pMessage);
} else {
- setText(QString("[%1] %s").arg(pFileInfo)
- .arg(pMessage));
+ setText(QString("[%1] %s").arg(pFileInfo,
+ pMessage));
}
} else if (pColumn == -1) {
if (pFileInfo.isEmpty()) {
diff --git a/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.cpp b/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.cpp
index cb836389d1..8933379173 100644
--- a/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.cpp
+++ b/src/plugins/widget/GraphPanelWidget/src/graphpanelplotwidget.cpp
@@ -1095,8 +1095,8 @@ void GraphPanelPlotOverlayWidget::drawCoordinates(QPainter *pPainter,
pPainter->setFont(mOwner->axisFont(QwtPlot::xBottom));
QPointF point = mOwner->canvasPoint(pPoint);
- QString coordinates = QString("X: %1\nY: %2").arg(QLocale().toString(point.x(), 'g', 15))
- .arg(QLocale().toString(point.y(), 'g', 15));
+ QString coordinates = QString("X: %1\nY: %2").arg(QLocale().toString(point.x(), 'g', 15),
+ QLocale().toString(point.y(), 'g', 15));
QPen pen = pPainter->pen();
pen.setStyle(Qt::SolidLine);
@@ -1399,7 +1399,7 @@ void GraphPanelPlotLegendWidget::updateWidget(QWidget *pWidget,
// Check whether we are dealing with one of our main legend labels
auto legendLabel = static_cast(pWidget);
- bool mainLegendLabel = mLegendLabels.values().contains(legendLabel);
+ bool mainLegendLabel = std::find(mLegendLabels.begin(), mLegendLabels.end(), legendLabel) != mLegendLabels.end();
if (mainLegendLabel) {
// We are dealing with a main legend label, i.e. a legend label
@@ -1474,7 +1474,7 @@ bool GraphPanelPlotLegendWidget::needScrollBar() const
int legendLabelsHeight = 0;
- for (auto legendLabel : mLegendLabels.values()) {
+ for (auto legendLabel : mLegendLabels) {
legendLabelsHeight += legendLabel->height();
}