From 765390e6db2b69976448e92d9a86516ead9b0c09 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 27 Mar 2023 09:29:48 +1100 Subject: Declare const where possible. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Editor.cxx') 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(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) { -- cgit v1.2.3