From 6b3a28e0c2c85f7ca3376ac406913e57ac1878b4 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 27 Apr 2018 17:36:58 +1000 Subject: Backport: Use nullptr for custom draw functions. Backport of changeset 6752:ad7b3c0b64e3. --- src/MarginView.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/MarginView.cxx') diff --git a/src/MarginView.cxx b/src/MarginView.cxx index 09f1b636d..2b40b10bc 100644 --- a/src/MarginView.cxx +++ b/src/MarginView.cxx @@ -100,7 +100,7 @@ void DrawWrapMarker(Surface *surface, PRectangle rcPlace, MarginView::MarginView() { wrapMarkerPaddingRight = 3; - customDrawWrapMarker = NULL; + customDrawWrapMarker = nullptr; } void MarginView::DropGraphics(bool freeObjects) { @@ -398,7 +398,7 @@ void MarginView::PaintMargin(Surface *surface, Sci::Line topLine, PRectangle rc, PRectangle rcWrapMarker = rcMarker; rcWrapMarker.right -= wrapMarkerPaddingRight; rcWrapMarker.left = rcWrapMarker.right - vs.styles[STYLE_LINENUMBER].aveCharWidth; - if (customDrawWrapMarker == NULL) { + if (!customDrawWrapMarker) { DrawWrapMarker(surface, rcWrapMarker, false, vs.styles[STYLE_LINENUMBER].fore); } else { customDrawWrapMarker(surface, rcWrapMarker, false, vs.styles[STYLE_LINENUMBER].fore); -- cgit v1.2.3