aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa
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 /cocoa
parentc085f3f8458110eca0874343b45b34acc9827631 (diff)
downloadscintilla-mirror-d9a4e803d7b5e9fde3009052653ec3fdf77c5c09.tar.gz
Use =delete for unwanted functions.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/ScintillaCocoa.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h
index 4c9da0f4a..2b19c6609 100644
--- a/cocoa/ScintillaCocoa.h
+++ b/cocoa/ScintillaCocoa.h
@@ -104,10 +104,6 @@ private:
bool enteredSetScrollingSize;
- // Private so ScintillaCocoa objects can not be copied
- ScintillaCocoa(const ScintillaCocoa &) : ScintillaBase() {}
- ScintillaCocoa &operator=(const ScintillaCocoa &) { return * this; }
-
bool GetPasteboardData(NSPasteboard* board, SelectionText* selectedText);
void SetPasteboardData(NSPasteboard* board, const SelectionText& selectedText);
int TargetAsUTF8(char *text);
@@ -135,6 +131,9 @@ protected:
public:
ScintillaCocoa(ScintillaView* sciView_, SCIContentView* viewContent, SCIMarginView* viewMargin);
+ // Deleted so ScintillaCocoa objects can not be copied
+ ScintillaCocoa(const ScintillaCocoa &) : ScintillaBase() = delete;
+ ScintillaCocoa &operator=(const ScintillaCocoa &) = delete;
~ScintillaCocoa() override;
void Finalise() override;