diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-05-01 09:52:18 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-05-01 09:52:18 +1000 | 
| commit | 305b903fe092c08d2873785d1e2638cbfbe831ab (patch) | |
| tree | 63a8e12129c48fa1dc32e4de0f608f70027d8eaa /src/EditView.h | |
| parent | 80949616e53bcc960ebc375f067d612b1f608f11 (diff) | |
| download | scintilla-mirror-305b903fe092c08d2873785d1e2638cbfbe831ab.tar.gz | |
Fix minor issues with AutoSurface, AutoLineLayout and SelectionText.
Diffstat (limited to 'src/EditView.h')
| -rw-r--r-- | src/EditView.h | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/src/EditView.h b/src/EditView.h index ac42f072b..f649f7c87 100644 --- a/src/EditView.h +++ b/src/EditView.h @@ -160,19 +160,19 @@ class AutoLineLayout {  	LineLayoutCache &llc;  	LineLayout *ll;  public: -	AutoLineLayout(LineLayoutCache &llc_, LineLayout *ll_) : llc(llc_), ll(ll_) {} +	AutoLineLayout(LineLayoutCache &llc_, LineLayout *ll_) noexcept : llc(llc_), ll(ll_) {}  	AutoLineLayout(const AutoLineLayout &) = delete;  	AutoLineLayout(AutoLineLayout &&) = delete;  	AutoLineLayout &operator=(const AutoLineLayout &) = delete;  	AutoLineLayout &operator=(AutoLineLayout &&) = delete;  	~AutoLineLayout() {  		llc.Dispose(ll); -		ll = 0; +		ll = nullptr;  	} -	LineLayout *operator->() const { +	LineLayout *operator->() const noexcept {  		return ll;  	} -	operator LineLayout *() const { +	operator LineLayout *() const noexcept {  		return ll;  	}  	void Set(LineLayout *ll_) {  | 
