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 3, 2020
1 parent 519476f commit 3b5a0d5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 17 deletions.
Expand Up @@ -184,11 +184,9 @@ void PendulumWindowWindow::createAndSetZincContext()
//==============================================================================

void PendulumWindowWindow::initData(const quint64 &pDataSize,
const double &pMinimumTime,
const double &pMaximumTime,
const double &pTimeInterval,
double *pR0Values, double *pQ1Values,
double *pThetaValues)
double pMinimumTime, double pMaximumTime,
double pTimeInterval, double *pR0Values,
double *pQ1Values, double *pThetaValues)
{
// Initialise our data
// Note: mTimeValues must be fully populated for Zinc to work as expected.
Expand Down Expand Up @@ -485,7 +483,7 @@ void PendulumWindowWindow::initData(const quint64 &pDataSize,

//==============================================================================

void PendulumWindowWindow::addData(const int &pCurrentDataSize)
void PendulumWindowWindow::addData(int pCurrentDataSize)
{
// Assign the time-varying parameters for mR0, mQ1 and mTheta

Expand Down Expand Up @@ -543,7 +541,7 @@ void PendulumWindowWindow::graphicsInitialized()

//==============================================================================

void PendulumWindowWindow::devicePixelRatioChanged(const int &pDevicePixelRatio)
void PendulumWindowWindow::devicePixelRatioChanged(int pDevicePixelRatio)
{
// Update our scene using the given devide pixel ratio

Expand All @@ -556,7 +554,7 @@ void PendulumWindowWindow::devicePixelRatioChanged(const int &pDevicePixelRatio)

//==============================================================================

void PendulumWindowWindow::timeSliderValueChanged(const int &pTime)
void PendulumWindowWindow::timeSliderValueChanged(int pTime)
{
// Update our scene

Expand Down
12 changes: 6 additions & 6 deletions src/plugins/simulation/PendulumWindow/src/pendulumwindowwindow.h
Expand Up @@ -85,10 +85,10 @@ class PENDULUMWINDOW_EXPORT PendulumWindowWindow : public Core::WindowWidget

void retranslateUi() override;

void initData(const quint64 &pDataSize, const double &pMinimumTime,
const double &pMaximumTime, const double &pTimeInterval,
double *pR0Values, double *pQ1Values, double *pThetaValues);
void addData(const int &pCurrentDataSize);
void initData(const quint64 &pDataSize, double pMinimumTime,
double pMaximumTime, double pTimeInterval, double *pR0Values,
double *pQ1Values, double *pThetaValues);
void addData(int pCurrentDataSize);

private:
Ui::PendulumWindowWindow *mGui;
Expand Down Expand Up @@ -125,9 +125,9 @@ class PENDULUMWINDOW_EXPORT PendulumWindowWindow : public Core::WindowWidget
private slots:
void createAndSetZincContext();
void graphicsInitialized();
void devicePixelRatioChanged(const int &pDevicePixelRatio);
void devicePixelRatioChanged(int pDevicePixelRatio);

void timeSliderValueChanged(const int &pTime);
void timeSliderValueChanged(int pTime);
void timerTimeOut();

void autoMode();
Expand Down
Expand Up @@ -1075,8 +1075,7 @@ void GraphPanelPlotOverlayWidget::drawCoordinates(QPainter *pPainter,
const QPoint &pPoint,
const QColor &pBackgroundColor,
const QColor &pForegroundColor,
const int &pFontSize,
int pLineWidth,
int pFontSize, int pLineWidth,
Position pPosition,
bool pCanMovePosition)
{
Expand Down
Expand Up @@ -285,7 +285,7 @@ class GraphPanelPlotOverlayWidget : public QWidget

void drawCoordinates(QPainter *pPainter, const QPoint &pPoint,
const QColor &pBackgroundColor,
const QColor &pForegroundColor, const int &pFontSize,
const QColor &pForegroundColor, int pFontSize,
int pLineWidth, Position pPosition,
bool pCanMovePosition = true);
};
Expand Down

0 comments on commit 3b5a0d5

Please sign in to comment.