aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PerLine.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-10-11 16:38:05 +1100
committerNeil <nyamatongwe@gmail.com>2018-10-11 16:38:05 +1100
commitc804e5578b41b3523e5cb933fd40d08ba132b347 (patch)
tree44689f9ac11b536da1ecab469bea920ae8e0895b /src/PerLine.cxx
parentc5dedff99f306588a7217d40a4281db7d1baffaa (diff)
downloadscintilla-mirror-c804e5578b41b3523e5cb933fd40d08ba132b347.tar.gz
Replace NULL and 0 with nullptr in clear cases of pure C++ code.
Diffstat (limited to 'src/PerLine.cxx')
-rw-r--r--src/PerLine.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PerLine.cxx b/src/PerLine.cxx
index 3dfdffe5c..4a313d292 100644
--- a/src/PerLine.cxx
+++ b/src/PerLine.cxx
@@ -350,14 +350,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 std::unique_ptr<char[]>AllocateAnnotation(int length, int style) {