diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2023-02-27 17:47:53 +1100 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2023-02-27 17:47:53 +1100 |
commit | f7866f75ffb28e3831358adfd4bb20a4c6633467 (patch) | |
tree | cf488ec56e53bcb0b688327643022de658aad1c2 | |
parent | e76fbd3f9ba742a1ef789ae215d9a71f9e27ad17 (diff) | |
download | scintilla-mirror-f7866f75ffb28e3831358adfd4bb20a4c6633467.tar.gz |
Define argument as const so can be used on const values.
-rw-r--r-- | cocoa/PlatCocoa.h | 2 | ||||
-rw-r--r-- | cocoa/PlatCocoa.mm | 2 |
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)); } |