update formatting with clang-format

This commit is contained in:
Axel Kohlmeyer
2023-09-01 02:45:20 -04:00
parent b6d10d1e20
commit 9690d2dc02
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@
static const QString blank(" ");
static constexpr int MAXRECENT = 5;
static constexpr int BUFLEN = 128;
static constexpr int BUFLEN = 128;
// duplicate string
static char *mystrdup(const std::string &text)
@ -311,8 +311,7 @@ LammpsGui::LammpsGui(QWidget *parent, const char *filename) :
int ncmds = lammps.style_count("command");
char buf[BUFLEN];
for (int i = 0; i < ncmds; ++i) {
if (lammps.style_name("command", i, buf, BUFLEN))
command_list << buf;
if (lammps.style_name("command", i, buf, BUFLEN)) command_list << buf;
}
command_list.sort();
ui->textEdit->setCommandList(command_list);