From 27b517bf5842c43db0b0263f1cb1b3478b5faffb Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Fri, 29 May 2020 11:02:25 +0200 Subject: [PATCH] [A/DE/VtkVis] Narrow the scope of the vars in TabWidget. --- Applications/DataExplorer/VtkVis/VtkVisTabWidget.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Applications/DataExplorer/VtkVis/VtkVisTabWidget.cpp b/Applications/DataExplorer/VtkVis/VtkVisTabWidget.cpp index 6cdb96a410b..ba7dffc2d8f 100644 --- a/Applications/DataExplorer/VtkVis/VtkVisTabWidget.cpp +++ b/Applications/DataExplorer/VtkVis/VtkVisTabWidget.cpp @@ -326,16 +326,15 @@ void VtkVisTabWidget::buildProportiesDialog(VtkVisPipelineItem* item) QString key = i.key(); QList<QVariant> values = i.value(); - VtkAlgorithmPropertyVectorEdit* vectorEdit; if (!values.empty()) { QList<QString> valuesAsString; foreach (QVariant variant, values) valuesAsString.push_back(variant.toString()); - vectorEdit = new VtkAlgorithmPropertyVectorEdit(valuesAsString, key, - values.front().type(), - algProps); + VtkAlgorithmPropertyVectorEdit* vectorEdit = + new VtkAlgorithmPropertyVectorEdit( + valuesAsString, key, values.front().type(), algProps); connect(vectorEdit, SIGNAL(editingFinished()), this, SIGNAL(requestViewUpdate())); layout->addRow(key, vectorEdit); -- GitLab