diff options
| author | Neil <nyamatongwe@gmail.com> | 2019-07-01 09:44:16 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2019-07-01 09:44:16 +1000 | 
| commit | b2ca12842cc9df7578a54d0f4c3948e26444753f (patch) | |
| tree | 8d108097a176e9ffcd8eeae277cf85da484beaa8 /src | |
| parent | f9521fd0e42320f9e8963b4577eaca30d0ce1ea9 (diff) | |
| download | scintilla-mirror-b2ca12842cc9df7578a54d0f4c3948e26444753f.tar.gz | |
Use noexcept in HighlightDelimiter - its a simple struct.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Document.h | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/src/Document.h b/src/Document.h index 0482c6c0e..d4a950ea5 100644 --- a/src/Document.h +++ b/src/Document.h @@ -137,23 +137,23 @@ public:  		firstChangeableLineAfter = -1;  	} -	bool NeedsDrawing(Sci::Line line) const { +	bool NeedsDrawing(Sci::Line line) const noexcept {  		return isEnabled && (line <= firstChangeableLineBefore || line >= firstChangeableLineAfter);  	} -	bool IsFoldBlockHighlighted(Sci::Line line) const { +	bool IsFoldBlockHighlighted(Sci::Line line) const noexcept {  		return isEnabled && beginFoldBlock != -1 && beginFoldBlock <= line && line <= endFoldBlock;  	} -	bool IsHeadOfFoldBlock(Sci::Line line) const { +	bool IsHeadOfFoldBlock(Sci::Line line) const noexcept {  		return beginFoldBlock == line && line < endFoldBlock;  	} -	bool IsBodyOfFoldBlock(Sci::Line line) const { +	bool IsBodyOfFoldBlock(Sci::Line line) const noexcept {  		return beginFoldBlock != -1 && beginFoldBlock < line && line < endFoldBlock;  	} -	bool IsTailOfFoldBlock(Sci::Line line) const { +	bool IsTailOfFoldBlock(Sci::Line line) const noexcept {  		return beginFoldBlock != -1 && beginFoldBlock < line && line == endFoldBlock;  	} | 
