From b23830487dc2b78a95c700a933949940a1ffcdbd Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Wed, 2 Aug 2017 17:53:07 -0230 Subject: [PATCH] Minor refactoring; remove const reference where not needed. --- src/emucore/PointingDevice.cxx | 2 +- src/emucore/PointingDevice.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emucore/PointingDevice.cxx b/src/emucore/PointingDevice.cxx index 668889a46..48e4f5fe2 100644 --- a/src/emucore/PointingDevice.cxx +++ b/src/emucore/PointingDevice.cxx @@ -119,7 +119,7 @@ void PointingDevice::setSensitivity(int sensitivity) } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -void PointingDevice::updateDirection(const int& counter, float& counterRemainder, +void PointingDevice::updateDirection(int counter, float& counterRemainder, bool& trackBallDir, int& trackBallLines, int& scanCount, int& firstScanOffset) { // Apply sensitivity and calculate remainder diff --git a/src/emucore/PointingDevice.hxx b/src/emucore/PointingDevice.hxx index b1dace7bf..6a6f5880d 100644 --- a/src/emucore/PointingDevice.hxx +++ b/src/emucore/PointingDevice.hxx @@ -88,7 +88,7 @@ class PointingDevice : public Controller virtual uInt8 ioPortA(uInt8 countH, uInt8 countV, uInt8 left, uInt8 down) = 0; private: - void updateDirection(const int& counter, float& counterRemainder, + void updateDirection(int counter, float& counterRemainder, bool& trackBallDir, int& trackBallLines, int& scanCount, int& firstScanOffset);