diff options
author | Neil <nyamatongwe@gmail.com> | 2019-05-11 07:25:22 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-05-11 07:25:22 +1000 |
commit | dbb3dbe28d22720639967832cef6f6e8163d472a (patch) | |
tree | 91edf03db5070f9429602e8c3ab0b94a1225f0ab /src/XPM.cxx | |
parent | 796d60abaa071e4baa4f047249cb8955071478b0 (diff) | |
download | scintilla-mirror-dbb3dbe28d22720639967832cef6f6e8163d472a.tar.gz |
Feature [feature-requests:#1283]. Standardise spelling - "color" -> "colour".
Diffstat (limited to 'src/XPM.cxx')
-rw-r--r-- | src/XPM.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx index 5df3ea7c9..f95580403 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -194,7 +194,7 @@ std::vector<const char *> XPM::LinesFormFromTextForm(const char *textForm) { for (; countQuotes < (2*strings) && textForm[j] != '\0'; j++) { if (textForm[j] == '\"') { if (countQuotes == 0) { - // First field: width, height, number of colors, chars per pixel + // First field: width, height, number of colours, chars per pixel const char *line0 = textForm + j + 1; // Skip width line0 = NextField(line0); @@ -205,7 +205,7 @@ std::vector<const char *> XPM::LinesFormFromTextForm(const char *textForm) { strings += atoi(line0); } if (countQuotes / 2 >= strings) { - break; // Bad height or number of colors! + break; // Bad height or number of colours! } if ((countQuotes & 1) == 0) { linesForm.push_back(textForm + j + 1); @@ -214,7 +214,7 @@ std::vector<const char *> XPM::LinesFormFromTextForm(const char *textForm) { } } if (textForm[j] == '\0' || countQuotes / 2 > strings) { - // Malformed XPM! Height + number of colors too high or too low + // Malformed XPM! Height + number of colours too high or too low linesForm.clear(); } return linesForm; |