diff options
author | Gregory Montoir | 2004-10-08 19:58:49 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-10-08 19:58:49 +0000 |
commit | 43a62296cdcbab2ea46bdc9534e6f1d6bcd2a5a3 (patch) | |
tree | ed51717e102789dfa71daf115a2ee878b8260151 /saga/interface.cpp | |
parent | 648b7b1e57411998f27f814c252748479e3738a3 (diff) | |
download | scummvm-rg350-43a62296cdcbab2ea46bdc9534e6f1d6bcd2a5a3.tar.gz scummvm-rg350-43a62296cdcbab2ea46bdc9534e6f1d6bcd2a5a3.tar.bz2 scummvm-rg350-43a62296cdcbab2ea46bdc9534e6f1d6bcd2a5a3.zip |
pass arguments by reference-to-const rather than by value, it's usually more efficient...
svn-id: r15477
Diffstat (limited to 'saga/interface.cpp')
-rw-r--r-- | saga/interface.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/saga/interface.cpp b/saga/interface.cpp index 3d999658f3..942264ceca 100644 --- a/saga/interface.cpp +++ b/saga/interface.cpp @@ -303,7 +303,7 @@ int Interface::draw() { return R_SUCCESS; } -int Interface::update(Point imousePt, int update_flag) { +int Interface::update(const Point& imousePt, int update_flag) { R_GAME_DISPLAYINFO g_di; R_SURFACE *back_buf; @@ -369,7 +369,7 @@ int Interface::drawStatusBar(R_SURFACE *ds) { return R_SUCCESS; } -int Interface::handleCommandClick(R_SURFACE *ds, Point imousePt) { +int Interface::handleCommandClick(R_SURFACE *ds, const Point& imousePt) { int hit_button; int ibutton_num; @@ -420,7 +420,7 @@ int Interface::handleCommandClick(R_SURFACE *ds, Point imousePt) { return R_SUCCESS; } -int Interface::handleCommandUpdate(R_SURFACE *ds, Point imousePt) { +int Interface::handleCommandUpdate(R_SURFACE *ds, const Point& imousePt) { int hit_button; int ibutton_num; @@ -474,7 +474,7 @@ int Interface::handleCommandUpdate(R_SURFACE *ds, Point imousePt) { return R_SUCCESS; } -int Interface::handlePlayfieldClick(R_SURFACE *ds, Point imousePt) { +int Interface::handlePlayfieldClick(R_SURFACE *ds, const Point& imousePt) { int objectNum; uint16 object_flags = 0; @@ -511,7 +511,7 @@ int Interface::handlePlayfieldClick(R_SURFACE *ds, Point imousePt) { return R_SUCCESS; } -int Interface::handlePlayfieldUpdate(R_SURFACE *ds, Point imousePt) { +int Interface::handlePlayfieldUpdate(R_SURFACE *ds, const Point& imousePt) { const char *object_name; int objectNum; uint16 object_flags = 0; @@ -546,7 +546,7 @@ int Interface::handlePlayfieldUpdate(R_SURFACE *ds, Point imousePt) { return R_SUCCESS; } -int Interface::hitTest(Point imousePt, int *ibutton) { +int Interface::hitTest(const Point& imousePt, int *ibutton) { R_INTERFACE_BUTTON *buttons; int nbuttons; |