aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.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/Indicator.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/Indicator.cxx')
-rw-r--r--src/Indicator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx
index bc3c83a17..5ab0a7813 100644
--- a/src/Indicator.cxx
+++ b/src/Indicator.cxx
@@ -60,7 +60,7 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r
const PRectangle rcSquiggle = PixelGridAlign(rc);
const int width = std::min(4000, static_cast<int>(rcSquiggle.Width()));
- RGBAImage image(width, 3, 1.0, 0);
+ RGBAImage image(width, 3, 1.0, nullptr);
enum { alphaFull = 0xff, alphaSide = 0x2f, alphaSide2=0x5f };
for (int x = 0; x < width; x++) {
if (x%2) {
@@ -165,7 +165,7 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r
IntegerRectangle ircBox(rcBox);
// Cap width at 4000 to avoid large allocations when mistakes made
const int width = std::min(ircBox.Width(), 4000);
- RGBAImage image(width, ircBox.Height(), 1.0, 0);
+ RGBAImage image(width, ircBox.Height(), 1.0, nullptr);
// Draw horizontal lines top and bottom
for (int x=0; x<width; x++) {
for (int y = 0; y<ircBox.Height(); y += ircBox.Height() - 1) {