diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-10-11 16:38:05 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-10-11 16:38:05 +1100 | 
| commit | e462c018b9dda9e111a07d298bae8fcebb14c8b2 (patch) | |
| tree | 03fec25e9b83d576f73d91facdd092e4eeece597 /src/PerLine.cxx | |
| parent | 083b30ff1783f7b6c803d2c5489ddcd5d0dce14f (diff) | |
| download | scintilla-mirror-e462c018b9dda9e111a07d298bae8fcebb14c8b2.tar.gz | |
Backport: Replace NULL and 0 with nullptr in clear cases of pure C++ code.
Backport of changeset 7111:e3cecaf6bd37.
Diffstat (limited to 'src/PerLine.cxx')
| -rw-r--r-- | src/PerLine.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx index 4ac4de9ce..537512290 100644 --- a/src/PerLine.cxx +++ b/src/PerLine.cxx @@ -349,14 +349,14 @@ const char *LineAnnotation::Text(Sci::Line line) const {  	if (annotations.Length() && (line >= 0) && (line < annotations.Length()) && annotations[line])  		return annotations[line].get()+sizeof(AnnotationHeader);  	else -		return 0; +		return nullptr;  }  const unsigned char *LineAnnotation::Styles(Sci::Line line) const {  	if (annotations.Length() && (line >= 0) && (line < annotations.Length()) && annotations[line] && MultipleStyles(line))  		return reinterpret_cast<unsigned char *>(annotations[line].get() + sizeof(AnnotationHeader) + Length(line));  	else -		return 0; +		return nullptr;  }  static char *AllocateAnnotation(int length, int style) {  | 
