aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.mm
diff options
context:
space:
mode:
Diffstat (limited to 'cocoa/PlatCocoa.mm')
-rw-r--r--cocoa/PlatCocoa.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/cocoa/PlatCocoa.mm b/cocoa/PlatCocoa.mm
index 5d161f810..d97c9f08d 100644
--- a/cocoa/PlatCocoa.mm
+++ b/cocoa/PlatCocoa.mm
@@ -73,7 +73,7 @@ NSRect PRectangleToNSRect(const PRectangle &rc) {
/**
* Converts an NSRect as used by the system to a native Scintilla rectangle.
*/
-PRectangle NSRectToPRectangle(NSRect &rc) {
+PRectangle NSRectToPRectangle(const NSRect &rc) {
return PRectangle(rc.origin.x, rc.origin.y, NSMaxX(rc), NSMaxY(rc));
}