aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CallTip.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-19 17:44:09 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-19 17:44:09 +1000
commitd9a4e803d7b5e9fde3009052653ec3fdf77c5c09 (patch)
tree45858426901e942a5f1cd8b1f4a5805902e125c0 /src/CallTip.h
parentc085f3f8458110eca0874343b45b34acc9827631 (diff)
downloadscintilla-mirror-d9a4e803d7b5e9fde3009052653ec3fdf77c5c09.tar.gz
Use =delete for unwanted functions.
Diffstat (limited to 'src/CallTip.h')
-rw-r--r--src/CallTip.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CallTip.h b/src/CallTip.h
index 28d815bbd..aec915373 100644
--- a/src/CallTip.h
+++ b/src/CallTip.h
@@ -27,9 +27,6 @@ class CallTip {
bool useStyleCallTip; // if true, STYLE_CALLTIP should be used
bool above; // if true, display calltip above text
- // Private so CallTip objects can not be copied
- CallTip(const CallTip &);
- CallTip &operator=(const CallTip &);
void DrawChunk(Surface *surface, int &x, const char *s,
int posStart, int posEnd, int ytext, PRectangle rcClient,
bool highlight, bool draw);
@@ -56,6 +53,9 @@ public:
int verticalOffset; // pixel offset up or down of the calltip with respect to the line
CallTip();
+ // Deleted so CallTip objects can not be copied
+ CallTip(const CallTip &) = delete;
+ CallTip &operator=(const CallTip &) = delete;
~CallTip();
void PaintCT(Surface *surfaceWindow);