diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-28 10:31:25 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-28 10:31:25 +1000 | 
| commit | 9472b43539e7b4a6a3f5e657b0ec06e9e6e5eab9 (patch) | |
| tree | 2486c7953942f70d46f805c5a809165c98424500 /src/EditView.h | |
| parent | 3173850f9261c9af83c91e92450879b233565670 (diff) | |
| download | scintilla-mirror-9472b43539e7b4a6a3f5e657b0ec06e9e6e5eab9.tar.gz | |
Delete standard functions on classes where there could be attempts to copy.
Diffstat (limited to 'src/EditView.h')
| -rw-r--r-- | src/EditView.h | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/src/EditView.h b/src/EditView.h index 37d0423bb..ac42f072b 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -92,7 +92,9 @@ public:  	EditView();  	// Deleted so EditView objects can not be copied.  	EditView(const EditView &) = delete; +	EditView(EditView &&) = delete;  	void operator=(const EditView &) = delete; +	void operator=(EditView &&) = delete;  	virtual ~EditView();  	bool SetTwoPhaseDraw(bool twoPhaseDraw); @@ -159,8 +161,10 @@ class AutoLineLayout {  	LineLayout *ll;  public:  	AutoLineLayout(LineLayoutCache &llc_, LineLayout *ll_) : llc(llc_), ll(ll_) {} -	explicit AutoLineLayout(const AutoLineLayout &) = delete; +	AutoLineLayout(const AutoLineLayout &) = delete; +	AutoLineLayout(AutoLineLayout &&) = delete;  	AutoLineLayout &operator=(const AutoLineLayout &) = delete; +	AutoLineLayout &operator=(AutoLineLayout &&) = delete;  	~AutoLineLayout() {  		llc.Dispose(ll);  		ll = 0; | 
