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/PerLine.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/PerLine.h')
| -rw-r--r-- | src/PerLine.h | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/src/PerLine.h b/src/PerLine.h index c75a83f65..ad9f9ee75 100644 --- a/src/PerLine.h +++ b/src/PerLine.h @@ -30,7 +30,9 @@ public:  	MarkerHandleSet();  	// Deleted so MarkerHandleSet objects can not be copied.  	MarkerHandleSet(const MarkerHandleSet &) = delete; +	MarkerHandleSet(MarkerHandleSet &&) = delete;  	void operator=(const MarkerHandleSet &) = delete; +	void operator=(MarkerHandleSet &&) = delete;  	~MarkerHandleSet();  	bool Empty() const noexcept;  	int MarkValue() const noexcept;	///< Bit set of marker numbers. @@ -72,9 +74,11 @@ class LineLevels : public PerLine {  public:  	LineLevels() {  	} -	// Deleted so Worker objects can not be copied. +	// Deleted so LineLevels objects can not be copied.  	LineLevels(const LineLevels &) = delete; +	LineLevels(LineLevels &&) = delete;  	void operator=(const LineLevels &) = delete; +	void operator=(LineLevels &&) = delete;  	~LineLevels() override;  	void Init() override;  	void InsertLine(Sci::Line line) override; @@ -93,7 +97,9 @@ public:  	}  	// Deleted so Worker objects can not be copied.  	LineState(const LineState &) = delete; +	LineState(LineState &&) = delete;  	void operator=(const LineState &) = delete; +	void operator=(LineState &&) = delete;  	~LineState() override;  	void Init() override;  	void InsertLine(Sci::Line line) override; @@ -111,7 +117,9 @@ public:  	}  	// Deleted so Worker objects can not be copied.  	LineAnnotation(const LineAnnotation &) = delete; +	LineAnnotation(LineAnnotation &&) = delete;  	void operator=(const LineAnnotation &) = delete; +	void operator=(LineAnnotation &&) = delete;  	~LineAnnotation() override;  	void Init() override;  	void InsertLine(Sci::Line line) override; @@ -138,7 +146,9 @@ public:  	}  	// Deleted so Worker objects can not be copied.  	LineTabstops(const LineTabstops &) = delete; +	LineTabstops(LineTabstops &&) = delete;  	void operator=(const LineTabstops &) = delete; +	void operator=(LineTabstops &&) = delete;  	~LineTabstops() override;  	void Init() override;  	void InsertLine(Sci::Line line) override; | 
