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 | c5b977db0bf02e06f69d0fd4ba2ce6fc1883553b (patch) | |
tree | 051cd8f710b87969897502ed7dcc533bf20b9655 /include/Platform.h | |
parent | a8fed0f50f5ef7540102b03975ac4c68bc737e66 (diff) | |
download | scintilla-mirror-c5b977db0bf02e06f69d0fd4ba2ce6fc1883553b.tar.gz |
Remove casts, drop default argument, use const.
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; } }; |