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/PositionCache.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/PositionCache.h')
| -rw-r--r-- | src/PositionCache.h | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h index fcbb1cdf7..c294edebd 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -77,7 +77,9 @@ public:  	explicit LineLayout(int maxLineLength_);  	// Deleted so LineLayout objects can not be copied.  	LineLayout(const LineLayout &) = delete; +	LineLayout(LineLayout &&) = delete;  	void operator=(const LineLayout &) = delete; +	void operator=(LineLayout &&) = delete;  	virtual ~LineLayout();  	void Resize(int maxLineLength_);  	void Free(); @@ -110,7 +112,9 @@ public:  	LineLayoutCache();  	// Deleted so LineLayoutCache objects can not be copied.  	LineLayoutCache(const LineLayoutCache &) = delete; +	LineLayoutCache(LineLayoutCache &&) = delete;  	void operator=(const LineLayoutCache &) = delete; +	void operator=(LineLayoutCache &&) = delete;  	virtual ~LineLayoutCache();  	void Deallocate();  	enum { @@ -137,7 +141,9 @@ public:  	// Copy constructor not currently used, but needed for being element in std::vector.  	PositionCacheEntry(const PositionCacheEntry &);  	// Deleted so PositionCacheEntry objects can not be assigned. +	PositionCacheEntry(PositionCacheEntry &&) = delete;  	void operator=(const PositionCacheEntry &) = delete; +	void operator=(PositionCacheEntry &&) = delete;  	~PositionCacheEntry();  	void Set(unsigned int styleNumber_, const char *s_, unsigned int len_, XYPOSITION *positions_, unsigned int clock_);  	void Clear(); @@ -204,7 +210,9 @@ public:  		int xStart, bool breakForSelection, const Document *pdoc_, const SpecialRepresentations *preprs_, const ViewStyle *pvsDraw);  	// Deleted so BreakFinder objects can not be copied.  	BreakFinder(const BreakFinder &) = delete; +	BreakFinder(BreakFinder &&) = delete;  	void operator=(const BreakFinder &) = delete; +	void operator=(BreakFinder &&) = delete;  	~BreakFinder();  	TextSegment Next();  	bool More() const; @@ -218,7 +226,9 @@ public:  	PositionCache();  	// Deleted so PositionCache objects can not be copied.  	PositionCache(const PositionCache &) = delete; +	PositionCache(PositionCache &&) = delete;  	void operator=(const PositionCache &) = delete; +	void operator=(PositionCache &&) = delete;  	~PositionCache();  	void Clear();  	void SetSize(size_t size_);  | 
