From bbfd34adc0e800ae2feec487a3c407873bb289e3 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 24 May 2018 09:24:44 +1000 Subject: Fix warnings. Add const, constexpr, and noexcept. Initialize. Standard methods. Replace 0 and NULL with nullptr for COM, DirectWrite and least ambiguous cases. --- src/XPM.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/XPM.h') diff --git a/src/XPM.h b/src/XPM.h index 92deb9e8a..c3c1fc3b3 100644 --- a/src/XPM.h +++ b/src/XPM.h @@ -14,12 +14,12 @@ namespace Scintilla { * Hold a pixmap in XPM format. */ class XPM { - int height; - int width; - int nColours; + int height=1; + int width=1; + int nColours=1; std::vector pixels; ColourDesired colourCodeTable[256]; - char codeTransparent; + char codeTransparent=' '; ColourDesired ColourFromCode(int ch) const; void FillRun(Surface *surface, int code, int startX, int y, int x) const; public: -- cgit v1.2.3