Skip to content

Commit

Permalink
Make Clang-Tidy happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Oct 25, 2019
1 parent 67469cc commit b6ea05d
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 155 deletions.
Expand Up @@ -219,17 +219,17 @@ void SimulationExperimentViewInformationGraphPanelAndGraphsWidget::retranslateUi

// Retranslate all our property editors

for (auto graphPanelPropertyEditor : mGraphPanelPropertyEditors.values()) {
for (auto graphPanelPropertyEditor : mGraphPanelPropertyEditors) {
graphPanelPropertyEditor->retranslateUi();
}

for (auto graphsPropertyEditor : mGraphsPropertyEditors.values()) {
for (auto graphsPropertyEditor : mGraphsPropertyEditors) {
graphsPropertyEditor->retranslateUi();
}

// Retranslate the contents of our graph panel property editors

for (auto graphPanelPropertyEditor : mGraphPanelPropertyEditors.values()) {
for (auto graphPanelPropertyEditor : mGraphPanelPropertyEditors) {
retranslateGraphPanelPropertyEditor(graphPanelPropertyEditor);
}

Expand Down Expand Up @@ -272,7 +272,7 @@ void SimulationExperimentViewInformationGraphPanelAndGraphsWidget::finalize()

// Remove all our graphs' runs

for (auto graph : mGraphs.values()) {
for (auto graph : mGraphs) {
graph->removeRuns();
}
}
Expand Down Expand Up @@ -779,11 +779,13 @@ void SimulationExperimentViewInformationGraphPanelAndGraphsWidget::fileRenamed(c

QString oldModelListValue = modelListValue(pOldFileName);

if (mRenamedModelListValues.values().contains(oldModelListValue)) {
if (std::find(mRenamedModelListValues.begin(), mRenamedModelListValues.end(), oldModelListValue) != mRenamedModelListValues.end()) {
// A previous model list value has been renamed again, so find its
// original value and update its new renamed version, if needed

for (const auto &origModelListValue : mRenamedModelListValues.keys()) {
QStringList origModelListValueKeys = mRenamedModelListValues.keys();

for (const auto &origModelListValue : origModelListValueKeys) {
QString renamedOrigModelListValue = mRenamedModelListValues.value(origModelListValue);

if (renamedOrigModelListValue == oldModelListValue) {
Expand Down Expand Up @@ -1724,7 +1726,7 @@ void SimulationExperimentViewInformationGraphPanelAndGraphsWidget::updateAllGrap
// Go through our graphs property editors and update the information about
// the graph properties they hold

for (auto graphsPropertyEditor : mGraphsPropertyEditors.values()) {
for (auto graphsPropertyEditor : mGraphsPropertyEditors) {
mGraphsPropertyEditor = graphsPropertyEditor;

updateGraphsInfo();
Expand Down
Expand Up @@ -477,8 +477,10 @@ void SimulationExperimentViewInformationSolversWidget::solverChanged(SimulationE
// Go through the different properties for the given type of solver and
// show/hide whatever needs showing/hiding

for (auto solverProperties = pSolverData->solversProperties().constBegin(),
solverPropertiesEnd = pSolverData->solversProperties().constEnd();
QMap<QString, Core::Properties> solversProperties = pSolverData->solversProperties();

for (auto solverProperties = solversProperties.constBegin(),
solverPropertiesEnd = solversProperties.constEnd();
solverProperties != solverPropertiesEnd; ++solverProperties) {
bool solverPropertiesVisible = solverProperties.key() == pSolverName;

Expand Down
Expand Up @@ -72,7 +72,7 @@ class SimulationExperimentViewPlugin : public QObject,
#include "viewinterface.inl"

private:
SimulationExperimentViewWidget *mViewWidget;
SimulationExperimentViewWidget *mViewWidget = nullptr;
};

//==============================================================================
Expand Down

0 comments on commit b6ea05d

Please sign in to comment.