diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-24 09:24:44 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-24 09:24:44 +1000 |
commit | bbfd34adc0e800ae2feec487a3c407873bb289e3 (patch) | |
tree | 06e19116e923a7ae0005070e1d9a695e5b212878 /src/XPM.h | |
parent | 70c14b70b935ae8b0656df0c8b7c64b481feea18 (diff) | |
download | scintilla-mirror-bbfd34adc0e800ae2feec487a3c407873bb289e3.tar.gz |
Fix warnings. Add const, constexpr, and noexcept. Initialize. Standard methods.
Replace 0 and NULL with nullptr for COM, DirectWrite and least ambiguous cases.
Diffstat (limited to 'src/XPM.h')
-rw-r--r-- | src/XPM.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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<unsigned char> 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: |