update formatting with clang-format
This commit is contained in:
@ -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);
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
// clang-format off
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* RCS INFORMATION:
|
* RCS INFORMATION:
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user