aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-20 08:27:32 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-20 08:27:32 +1000
commitcd438e160a1b3af0b96f8cd21e8cb1b240073021 (patch)
treebb3fa7679e7e67cbb06910f5348962171f54b75b /include/Platform.h
parent2bda47cbac6778a204037890479611a1631a480f (diff)
downloadscintilla-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.h6
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;
}
};