aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cocoa/PlatCocoa.h2
-rw-r--r--cocoa/PlatCocoa.mm2
2 files changed, 2 insertions, 2 deletions
diff --git a/cocoa/PlatCocoa.h b/cocoa/PlatCocoa.h
index d63ad63c6..536d3bcf9 100644
--- a/cocoa/PlatCocoa.h
+++ b/cocoa/PlatCocoa.h
@@ -25,7 +25,7 @@
#include "QuartzTextLayout.h"
NSRect PRectangleToNSRect(const Scintilla::Internal::PRectangle &rc);
-Scintilla::Internal::PRectangle NSRectToPRectangle(NSRect &rc);
+Scintilla::Internal::PRectangle NSRectToPRectangle(const NSRect &rc);
CFStringEncoding EncodingFromCharacterSet(bool unicode, Scintilla::CharacterSet characterSet);
@interface ScintillaContextMenu : NSMenu {
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));
}