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
commitc5b977db0bf02e06f69d0fd4ba2ce6fc1883553b (patch)
tree051cd8f710b87969897502ed7dcc533bf20b9655 /include/Platform.h
parenta8fed0f50f5ef7540102b03975ac4c68bc737e66 (diff)
downloadscintilla-mirror-c5b977db0bf02e06f69d0fd4ba2ce6fc1883553b.tar.gz
Remove casts, drop default argument, use const.
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;
}
};