aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Editor.h b/src/Editor.h
index 4e5e56f5b..9ddb753e6 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -257,7 +257,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
bool convertPastes;
Editor();
- // Deleted so Editor objects can not be copied
+ // Deleted so Editor objects can not be copied.
explicit Editor(const Editor &) = delete;
Editor &operator=(const Editor &) = delete;
~Editor() override;
@@ -624,6 +624,9 @@ public:
}
}
}
+ // Deleted so AutoSurface objects can not be copied.
+ AutoSurface(const AutoSurface &) = delete;
+ void operator=(const AutoSurface &) = delete;
~AutoSurface() {
delete surf;
}