From c804e5578b41b3523e5cb933fd40d08ba132b347 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 11 Oct 2018 16:38:05 +1100 Subject: Replace NULL and 0 with nullptr in clear cases of pure C++ code. --- src/PerLine.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/PerLine.cxx') 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(annotations[line].get() + sizeof(AnnotationHeader) + Length(line)); else - return 0; + return nullptr; } static std::unique_ptrAllocateAnnotation(int length, int style) { -- cgit v1.2.3