Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Aug 12, 2020
1 parent d3e2f4d commit dbccfd0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
Expand Up @@ -63,16 +63,7 @@ namespace PendulumWindow {

PendulumWindowWindow::PendulumWindowWindow(QWidget *pParent) :
Core::WindowWidget(pParent),
mGui(new Ui::PendulumWindowWindow),
mZincContext(nullptr),
mZincSceneViewerDescription(nullptr),
mAxesFontPointSize(0),
mInitialiseZincScene(true),
mCurrentDataSize(0),
mTimeValues(nullptr),
mR0Values(nullptr),
mQ1Values(nullptr),
mThetaValues(nullptr)
mGui(new Ui::PendulumWindowWindow)
{
// Set up the GUI

Expand Down
18 changes: 9 additions & 9 deletions src/plugins/simulation/PendulumWindow/src/pendulumwindowwindow.h
Expand Up @@ -94,7 +94,7 @@ class PENDULUMWINDOW_EXPORT PendulumWindowWindow : public Core::WindowWidget
Ui::PendulumWindowWindow *mGui;

ZincWidget::ZincWidget *mZincWidget;
OpenCMISS::Zinc::Context *mZincContext;
OpenCMISS::Zinc::Context *mZincContext = nullptr;

QTimer mTimer;

Expand All @@ -109,18 +109,18 @@ class PENDULUMWINDOW_EXPORT PendulumWindowWindow : public Core::WindowWidget
OpenCMISS::Zinc::FieldFiniteElement mTheta;
OpenCMISS::Zinc::Fieldcache mFieldCache;

char *mZincSceneViewerDescription;
char *mZincSceneViewerDescription = nullptr;

int mAxesFontPointSize;
int mAxesFontPointSize = 0;

bool mInitialiseZincScene;
bool mInitialiseZincScene = true;

int mCurrentDataSize;
int mCurrentDataSize = 0;

double *mTimeValues;
double *mR0Values;
double *mQ1Values;
double *mThetaValues;
double *mTimeValues = nullptr;
double *mR0Values = nullptr;
double *mQ1Values = nullptr;
double *mThetaValues = nullptr;

private slots:
void createAndSetZincContext();
Expand Down

0 comments on commit dbccfd0

Please sign in to comment.