diff options
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.h b/src/Editor.h index f9d938685..54ca1110f 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -699,7 +699,7 @@ public: AutoSurface(const Editor *ed) : surf(ed->CreateMeasurementSurface()) { } - AutoSurface(SurfaceID sid, Editor *ed, std::optional<Scintilla::Technology> technology = {}) : + AutoSurface(SurfaceID sid, const Editor *ed, std::optional<Scintilla::Technology> technology = {}) : surf(ed->CreateDrawingSurface(sid, technology)) { } // Deleted so AutoSurface objects can not be copied. |