summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/ctl/Ctlmodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-03-22 15:35:24 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-03-22 15:35:24 (GMT)
commitdeb6373fff220f0b0dd3024a49ba0628be7b1018 (patch)
treec5c979eca2da40b876b27bf88b5ce3e88b054c50 /Mac/Modules/ctl/Ctlmodule.c
parent8e14f05ae6d068f03940c35c2edb56f5b6fabf78 (diff)
downloadcpython-deb6373fff220f0b0dd3024a49ba0628be7b1018.zip
cpython-deb6373fff220f0b0dd3024a49ba0628be7b1018.tar.gz
cpython-deb6373fff220f0b0dd3024a49ba0628be7b1018.tar.bz2
Data of type Point is passed by value, not by reference.
Diffstat (limited to 'Mac/Modules/ctl/Ctlmodule.c')
-rw-r--r--Mac/Modules/ctl/Ctlmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Modules/ctl/Ctlmodule.c b/Mac/Modules/ctl/Ctlmodule.c
index 12e5809..991b567 100644
--- a/Mac/Modules/ctl/Ctlmodule.c
+++ b/Mac/Modules/ctl/Ctlmodule.c
@@ -2059,7 +2059,7 @@ myhittestproc(ControlHandle control, Point where)
short c_rv = -1;
ctl_obj = (ControlObject *)CtlObj_WhichControl(control);
- arglist = Py_BuildValue("OO&", ctl_obj, PyMac_BuildPoint, &where);
+ arglist = Py_BuildValue("OO&", ctl_obj, PyMac_BuildPoint, where);
rv = callcallback(ctl_obj, kControlUserPaneHitTestProcTag, arglist);
Py_XDECREF(arglist);
/* Ignore errors, nothing we can do about them */
@@ -2078,7 +2078,7 @@ mytrackingproc(ControlHandle control, Point startPt, ControlActionUPP actionProc
ctl_obj = (ControlObject *)CtlObj_WhichControl(control);
/* We cannot pass the actionProc without lots of work */
- arglist = Py_BuildValue("OO&", ctl_obj, PyMac_BuildPoint, &startPt);
+ arglist = Py_BuildValue("OO&", ctl_obj, PyMac_BuildPoint, startPt);
rv = callcallback(ctl_obj, kControlUserPaneTrackingProcTag, arglist);
Py_XDECREF(arglist);
if ( rv )