aboutsummaryrefslogtreecommitdiff
path: root/saga/interface.h
diff options
context:
space:
mode:
authorGregory Montoir2004-10-08 19:58:49 +0000
committerGregory Montoir2004-10-08 19:58:49 +0000
commit43a62296cdcbab2ea46bdc9534e6f1d6bcd2a5a3 (patch)
treeed51717e102789dfa71daf115a2ee878b8260151 /saga/interface.h
parent648b7b1e57411998f27f814c252748479e3738a3 (diff)
downloadscummvm-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.h')
-rw-r--r--saga/interface.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/saga/interface.h b/saga/interface.h
index 300ed951c2..16ef258615 100644
--- a/saga/interface.h
+++ b/saga/interface.h
@@ -160,16 +160,16 @@ class Interface {
int deactivate();
int setStatusText(const char *new_txt);
int draw();
- int update(Point imousePt, int update_flag);
+ int update(const Point& imousePt, int update_flag);
private:
- int hitTest(Point imousePt, int *ibutton);
+ int hitTest(const Point& imousePt, int *ibutton);
int drawStatusBar(R_SURFACE *ds);
- int handleCommandUpdate(R_SURFACE *ds, Point imousePt);
- int handleCommandClick(R_SURFACE *ds, Point imousePt);
- int handlePlayfieldUpdate(R_SURFACE *ds, Point imousePt);
- int handlePlayfieldClick(R_SURFACE *ds, Point imousePt);
+ int handleCommandUpdate(R_SURFACE *ds, const Point& imousePt);
+ int handleCommandClick(R_SURFACE *ds, const Point& imousePt);
+ int handlePlayfieldUpdate(R_SURFACE *ds, const Point& imousePt);
+ int handlePlayfieldClick(R_SURFACE *ds, const Point& imousePt);
private:
SagaEngine *_vm;