diff options
author | Neil <nyamatongwe@gmail.com> | 2023-10-10 09:11:27 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-10-10 09:11:27 +1100 |
commit | b20c3b551a4a87888cf00e5f7da22d836015a073 (patch) | |
tree | 4c2f9fd038f52c0b09c322f2f21d444766ad1994 /src/XPM.cxx | |
parent | 74876d72fdd85764ecc0a231bdaa711498178df5 (diff) | |
download | scintilla-mirror-b20c3b551a4a87888cf00e5f7da22d836015a073.tar.gz |
Use global constants for opaque black and white and local constants for greys.
Makes it easier to understand and reduces warnings.
Diffstat (limited to 'src/XPM.cxx')
-rw-r--r-- | src/XPM.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx index 5c7d8fee0..57c401eed 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -117,7 +117,7 @@ void XPM::Init(const char *const *linesForm) { if (!linesForm) return; - std::fill(colourCodeTable, std::end(colourCodeTable), ColourRGBA(0, 0, 0)); + std::fill(colourCodeTable, std::end(colourCodeTable), black); const char *line0 = linesForm[0]; width = atoi(line0); line0 = NextField(line0); |