From 4199cc2016228b6c7c953e3968b22a15a14a4409 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de> Date: Tue, 31 Oct 2023 10:18:09 +0100 Subject: [PATCH] clang-format --- GUI/Model/Model/ParameterTreeUtil.cpp | 3 ++- GUI/Support/Util/String.cpp | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/GUI/Model/Model/ParameterTreeUtil.cpp b/GUI/Model/Model/ParameterTreeUtil.cpp index bdaebb90a0b..8ccbc095484 100644 --- a/GUI/Model/Model/ParameterTreeUtil.cpp +++ b/GUI/Model/Model/ParameterTreeUtil.cpp @@ -114,7 +114,8 @@ void ParameterTreeBuilder::addSample() int iLayout = 0; for (auto* layout : layer->layoutItems()) { - auto* label2 = new ParameterLabelItem("Layout" + QString::number(iLayout++), layerLabel); + auto* label2 = + new ParameterLabelItem("Layout" + QString::number(iLayout++), layerLabel); if (!layout->totalDensityIsDefinedByInterference()) addParameterItem(label2, layout->ownDensity()); diff --git a/GUI/Support/Util/String.cpp b/GUI/Support/Util/String.cpp index e4f8cd9657d..d8c86df9393 100644 --- a/GUI/Support/Util/String.cpp +++ b/GUI/Support/Util/String.cpp @@ -32,12 +32,12 @@ QString GUI::Util::String::suggestName(const QStringList& existingNames, const Q QString baseName = name; { - QRegularExpressionMatch matched{regexp.match(baseName)}; - if (matched.hasMatch()) { - newNumber = matched.captured(1).toInt(); - baseName.replace(matched.captured(0), ""); - baseName = baseName.trimmed(); - } + QRegularExpressionMatch matched{regexp.match(baseName)}; + if (matched.hasMatch()) { + newNumber = matched.captured(1).toInt(); + baseName.replace(matched.captured(0), ""); + baseName = baseName.trimmed(); + } } for (const auto& n : existingNames) { -- GitLab