diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-04-19 17:44:09 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-04-19 17:44:09 +1000 |
| commit | d9a4e803d7b5e9fde3009052653ec3fdf77c5c09 (patch) | |
| tree | 45858426901e942a5f1cd8b1f4a5805902e125c0 /cocoa | |
| parent | c085f3f8458110eca0874343b45b34acc9827631 (diff) | |
| download | scintilla-mirror-d9a4e803d7b5e9fde3009052653ec3fdf77c5c09.tar.gz | |
Use =delete for unwanted functions.
Diffstat (limited to 'cocoa')
| -rw-r--r-- | cocoa/ScintillaCocoa.h | 7 |
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; |
