diff options
| author | Neil <nyamatongwe@gmail.com> | 2023-03-27 09:29:48 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2023-03-27 09:29:48 +1100 |
| commit | 765390e6db2b69976448e92d9a86516ead9b0c09 (patch) | |
| tree | eb01e21aae213bc8422ffdee8c99e4521c28dde8 /src/Editor.cxx | |
| parent | 481b5651df9bd160d4ff1f1ba471eead61a53252 (diff) | |
| download | scintilla-mirror-765390e6db2b69976448e92d9a86516ead9b0c09.tar.gz | |
Declare const where possible.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 3b0455b5e..a78bcc8eb 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1914,7 +1914,7 @@ Sci::Position Editor::FormatRange(Scintilla::Message iMessage, Scintilla::uptr_t void *ptr = PtrFromSPtr(lParam); if (iMessage == Message::FormatRange) { RangeToFormat *pfr = static_cast<RangeToFormat *>(ptr); - CharacterRangeFull chrg{ pfr->chrg.cpMin,pfr->chrg.cpMax }; + const CharacterRangeFull chrg{ pfr->chrg.cpMin,pfr->chrg.cpMax }; AutoSurface surface(pfr->hdc, this, Technology::Default); AutoSurface surfaceMeasure(pfr->hdcTarget, this, Technology::Default); if (!surface || !surfaceMeasure) { |
