Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Sep 11, 2023
1 parent 8579443 commit 42e1a0a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions avogadro/qtgui/scriptloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@

namespace Avogadro::QtGui {

ScriptLoader::ScriptLoader(QObject* parent_)
: QObject(parent_)
{}
ScriptLoader::ScriptLoader(QObject* parent_) : QObject(parent_) {}

ScriptLoader::~ScriptLoader() {}

Expand All @@ -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;
Expand Down Expand Up @@ -96,7 +93,7 @@ QMap<QString, QString> 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())
Expand Down Expand Up @@ -152,4 +149,4 @@ QMap<QString, QString> ScriptLoader::scriptList(const QString& type)
return scriptList;
}

} // namespace Avogadro
} // namespace Avogadro::QtGui

1 comment on commit 42e1a0a

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ERROR: clang-format-diff detected formatting issues. See the artifact for a patch or run clang-format on your branch.

Please sign in to comment.