aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-06-28 08:42:26 +1000
committerNeil <nyamatongwe@gmail.com>2023-06-28 08:42:26 +1000
commit15e24b271d134ce630d5034ca8a1bf8c08dc6a56 (patch)
tree737335995cbde156576656691a48b869659c5dd5 /src/Editor.h
parent3b0d583284a890ca32e6a4edd70a0fce40dfa946 (diff)
downloadscintilla-mirror-15e24b271d134ce630d5034ca8a1bf8c08dc6a56.tar.gz
Add const where viable.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h2
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.