aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MarginView.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-27 17:36:58 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-27 17:36:58 +1000
commit8be9093b44cb988c477a3ef3b32e84eab2218600 (patch)
treeb702acb24c1b262226525e69d3e559fd8bafd999 /src/MarginView.cxx
parent35775912a5e5cce323187172b84653d43f070916 (diff)
downloadscintilla-mirror-8be9093b44cb988c477a3ef3b32e84eab2218600.tar.gz
Use nullptr for custom draw functions.
Diffstat (limited to 'src/MarginView.cxx')
-rw-r--r--src/MarginView.cxx4
1 files changed, 2 insertions, 2 deletions
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);