aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Editor.h2
-rw-r--r--src/PerLine.cxx2
2 files changed, 2 insertions, 2 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.
diff --git a/src/PerLine.cxx b/src/PerLine.cxx
index 4d76b0b79..b2e4530ea 100644
--- a/src/PerLine.cxx
+++ b/src/PerLine.cxx
@@ -540,7 +540,7 @@ bool LineTabstops::AddTabstop(Sci::Line line, int x) {
int LineTabstops::GetNextTabstop(Sci::Line line, int x) const noexcept {
if (line < tabstops.Length()) {
- TabstopList *tl = tabstops[line].get();
+ const TabstopList *tl = tabstops[line].get();
if (tl) {
for (const int i : *tl) {
if (i > x) {