diff options
author | Neil <nyamatongwe@gmail.com> | 2018-10-11 16:38:05 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-10-11 16:38:05 +1100 |
commit | e462c018b9dda9e111a07d298bae8fcebb14c8b2 (patch) | |
tree | 03fec25e9b83d576f73d91facdd092e4eeece597 /src/Indicator.cxx | |
parent | 083b30ff1783f7b6c803d2c5489ddcd5d0dce14f (diff) | |
download | scintilla-mirror-e462c018b9dda9e111a07d298bae8fcebb14c8b2.tar.gz |
Backport: Replace NULL and 0 with nullptr in clear cases of pure C++ code.
Backport of changeset 7111:e3cecaf6bd37.
Diffstat (limited to 'src/Indicator.cxx')
-rw-r--r-- | src/Indicator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx index b62abaa08..544bd571d 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) { |