diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-04-06 21:04:37 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-04-06 21:04:37 +1000 | 
| commit | cda15af9657880e91ccf65603e109b202d9e78bf (patch) | |
| tree | eb730cdcc810842ce2255c3d2af9872041583a74 /src/ViewStyle.cxx | |
| parent | dba2fe55b8a4ab4ac34795fe4a4b30a729c77016 (diff) | |
| download | scintilla-mirror-cda15af9657880e91ccf65603e109b202d9e78bf.tar.gz | |
Added const where possible.
Diffstat (limited to 'src/ViewStyle.cxx')
| -rw-r--r-- | src/ViewStyle.cxx | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 64f9eee7b..701c51689 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -565,31 +565,31 @@ bool ViewStyle::SetWrapState(int wrapState_) {  		wrapStateWanted = eWrapNone;  		break;  	} -	bool changed = wrapState != wrapStateWanted; +	const bool changed = wrapState != wrapStateWanted;  	wrapState = wrapStateWanted;  	return changed;  }  bool ViewStyle::SetWrapVisualFlags(int wrapVisualFlags_) { -	bool changed = wrapVisualFlags != wrapVisualFlags_; +	const bool changed = wrapVisualFlags != wrapVisualFlags_;  	wrapVisualFlags = wrapVisualFlags_;  	return changed;  }  bool ViewStyle::SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation_) { -	bool changed = wrapVisualFlagsLocation != wrapVisualFlagsLocation_; +	const bool changed = wrapVisualFlagsLocation != wrapVisualFlagsLocation_;  	wrapVisualFlagsLocation = wrapVisualFlagsLocation_;  	return changed;  }  bool ViewStyle::SetWrapVisualStartIndent(int wrapVisualStartIndent_) { -	bool changed = wrapVisualStartIndent != wrapVisualStartIndent_; +	const bool changed = wrapVisualStartIndent != wrapVisualStartIndent_;  	wrapVisualStartIndent = wrapVisualStartIndent_;  	return changed;  }  bool ViewStyle::SetWrapIndentMode(int wrapIndentMode_) { -	bool changed = wrapIndentMode != wrapIndentMode_; +	const bool changed = wrapIndentMode != wrapIndentMode_;  	wrapIndentMode = wrapIndentMode_;  	return changed;  } | 
