diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-04-20 08:27:32 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-04-20 08:27:32 +1000 |
| commit | cd438e160a1b3af0b96f8cd21e8cb1b240073021 (patch) | |
| tree | bb3fa7679e7e67cbb06910f5348962171f54b75b /include/Platform.h | |
| parent | 2bda47cbac6778a204037890479611a1631a480f (diff) | |
| download | scintilla-mirror-cd438e160a1b3af0b96f8cd21e8cb1b240073021.tar.gz | |
Backport: Remove casts, drop default argument, use const.
Backport of changeset 6708:6705d3f828c5.
Diffstat (limited to 'include/Platform.h')
| -rw-r--r-- | include/Platform.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/Platform.h b/include/Platform.h index 92180b354..773ae2439 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -217,15 +217,15 @@ public: return co; } - unsigned int GetRed() const { + unsigned char GetRed() const { return co & 0xff; } - unsigned int GetGreen() const { + unsigned char GetGreen() const { return (co >> 8) & 0xff; } - unsigned int GetBlue() const { + unsigned char GetBlue() const { return (co >> 16) & 0xff; } }; |
