diff options
author | Paul Gilbert | 2012-05-13 00:43:02 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-13 00:43:02 +1000 |
commit | 8a88ad861d68bd4c5a1a932d9da2518569ecc4ff (patch) | |
tree | 0a080c526444c8ef5fef47a328d4b833daeafaf2 /engines/tony/game.h | |
parent | 09afc8a1fa354bc25a118a181d261e54c81f97c9 (diff) | |
download | scummvm-rg350-8a88ad861d68bd4c5a1a932d9da2518569ecc4ff.tar.gz scummvm-rg350-8a88ad861d68bd4c5a1a932d9da2518569ecc4ff.tar.bz2 scummvm-rg350-8a88ad861d68bd4c5a1a932d9da2518569ecc4ff.zip |
TONY: Converted object passing to use const reference where appropriate.
This should cut down on the number of redunndant creations of temporary objects.
Diffstat (limited to 'engines/tony/game.h')
-rw-r--r-- | engines/tony/game.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/tony/game.h b/engines/tony/game.h index 554279c13f..8cd64ec7d2 100644 --- a/engines/tony/game.h +++ b/engines/tony/game.h @@ -138,7 +138,7 @@ public: virtual void Draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim); // Sets the current co-ordinates - void SetCoord(RMPoint pt) { m_pos = pt; } + void SetCoord(const RMPoint &pt) { m_pos = pt; } // Overloading of the method to see if rising from the list virtual void RemoveThis(CORO_PARAM, bool &result); @@ -170,10 +170,10 @@ public: public: RMOptionButton(uint32 dwRes, RMPoint pt, bool bDoubleState = false); - RMOptionButton(RMRect pt); + RMOptionButton(const RMRect &pt); virtual ~RMOptionButton(); - bool DoFrame(RMPoint mousePos, bool bLeftClick, bool bRightClick); + bool DoFrame(const RMPoint &mousePos, bool bLeftClick, bool bRightClick); virtual void Draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim); void AddToList(RMGfxTargetBuffer &bigBuf); bool IsActive() { return m_bActive; } @@ -195,10 +195,10 @@ private: int m_nStep; public: - RMOptionSlide(RMPoint pt, int m_nRange=100, int m_nStartValue=0, int slideSize=300); + RMOptionSlide(const RMPoint &pt, int m_nRange = 100, int m_nStartValue = 0, int slideSize = 300); virtual ~RMOptionSlide(); - bool DoFrame(RMPoint mousePos, bool bLeftClick, bool bRightClick); + bool DoFrame(const RMPoint &mousePos, bool bLeftClick, bool bRightClick); virtual void Draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim); void AddToList(RMGfxTargetBuffer& bigBuf); |