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

View File

@ -1,3 +1,4 @@
// clang-format off
/*************************************************************************** /***************************************************************************
* RCS INFORMATION: * RCS INFORMATION:
* *