apply clang-format
This commit is contained in:
@ -22,8 +22,8 @@
|
||||
using namespace QtCharts;
|
||||
|
||||
ChartWindow::ChartWindow(const QString &_filename, QWidget *parent) :
|
||||
QWidget(parent), menu(new QMenuBar), file(new QMenu("&File")),
|
||||
filename(_filename), active_chart(-1)
|
||||
QWidget(parent), menu(new QMenuBar), file(new QMenu("&File")), filename(_filename),
|
||||
active_chart(-1)
|
||||
{
|
||||
auto *top = new QHBoxLayout;
|
||||
menu->addMenu(file);
|
||||
|
||||
@ -836,7 +836,7 @@ void LammpsGui::logupdate()
|
||||
|
||||
for (int i = 0; i < ncols; ++i) {
|
||||
int datatype = *(int *)lammps.last_thermo("type", i);
|
||||
double data = 0.0;
|
||||
double data = 0.0;
|
||||
if (datatype == 0) // int
|
||||
data = *(int *)lammps.last_thermo("data", i);
|
||||
else if (datatype == 2) // double
|
||||
@ -906,7 +906,7 @@ void LammpsGui::run_done()
|
||||
chartwindow->add_chart(label, i);
|
||||
}
|
||||
int datatype = *(int *)lammps.last_thermo("type", i);
|
||||
double data = 0.0;
|
||||
double data = 0.0;
|
||||
if (datatype == 0) // int
|
||||
data = *(int *)lammps.last_thermo("data", i);
|
||||
else if (datatype == 2) // double
|
||||
|
||||
@ -19,7 +19,8 @@
|
||||
#include "library.h"
|
||||
#endif
|
||||
|
||||
LammpsWrapper::LammpsWrapper() : lammps_handle(nullptr) {
|
||||
LammpsWrapper::LammpsWrapper() : lammps_handle(nullptr)
|
||||
{
|
||||
#if defined(LAMMPS_GUI_USE_PLUGIN)
|
||||
plugin_handle = nullptr;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user