From 42e1a0a3f45c1199001a6059277bc8736df66fa0 Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Sun, 10 Sep 2023 22:07:18 -0400 Subject: [PATCH] Fix formatting Signed-off-by: Geoff Hutchison --- avogadro/qtgui/scriptloader.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/avogadro/qtgui/scriptloader.cpp b/avogadro/qtgui/scriptloader.cpp index 46c021aff7..f77e918792 100644 --- a/avogadro/qtgui/scriptloader.cpp +++ b/avogadro/qtgui/scriptloader.cpp @@ -27,9 +27,7 @@ namespace Avogadro::QtGui { -ScriptLoader::ScriptLoader(QObject* parent_) - : QObject(parent_) -{} +ScriptLoader::ScriptLoader(QObject* parent_) : QObject(parent_) {} ScriptLoader::~ScriptLoader() {} @@ -40,8 +38,7 @@ bool ScriptLoader::queryProgramName(const QString& scriptFilePath, displayName = gen.displayName(); if (gen.hasErrors()) { displayName.clear(); - qWarning() << tr("Cannot load script %1") - .arg(scriptFilePath); + qWarning() << tr("Cannot load script %1").arg(scriptFilePath); return false; } return true; @@ -96,7 +93,7 @@ QMap ScriptLoader::scriptList(const QString& type) if (commands.type() == QJsonValue::Array) { // check if "command.*" exists as a file QJsonArray list = commands.toArray(); - for (auto && i : list) { + for (auto&& i : list) { QJsonValue command = i.toObject()["command"]; QString name = command.toString(); if (name.isEmpty() || name.isNull()) @@ -152,4 +149,4 @@ QMap ScriptLoader::scriptList(const QString& type) return scriptList; } -} // namespace Avogadro +} // namespace Avogadro::QtGui