Skip to content

Commit

Permalink
Tidy up for clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew J. Milner <[email protected]>
  • Loading branch information
matterhorn103 committed Sep 16, 2024
1 parent 497d54b commit 74c5a92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions avogadro/qtopengl/glwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
#include <QPointer>

#if QT_VERSION >= 0x060000
#include <QtOpenGLWidgets/QOpenGLWidget>
#include <QtOpenGLWidgets/QOpenGLWidget>
#else
#include <QOpenGLWidget>
#include <QOpenGLWidget>
#endif

class QTimer;
Expand Down
3 changes: 2 additions & 1 deletion avogadro/qtplugins/forcefield/scriptenergy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ void ScriptEnergy::processElementString(const QString& str)
QString str2(str);
str2.replace(',', ' ');
// then split on whitespace
QStringList strList = str2.split(QRegularExpression("\\s+"), Qt::SkipEmptyParts);
QStringList strList =
str2.split(QRegularExpression("\\s+"), Qt::SkipEmptyParts);
foreach (QString sstr, strList) {
// these should be numbers or ranges (e.g., 1-84)
if (sstr.contains('-')) {
Expand Down

0 comments on commit 74c5a92

Please sign in to comment.