diff options
author | Neil <nyamatongwe@gmail.com> | 2021-06-09 12:15:05 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-06-09 12:15:05 +1000 |
commit | b5e8caaacbd47583c79bf862e5e6a021bcfc3964 (patch) | |
tree | 885ceb140cda8f9721ddeb3a327c5a51e27e3785 /src/ViewStyle.cxx | |
parent | 5f998b68113dd116c1e938028dddcbcc7425a144 (diff) | |
download | scintilla-mirror-b5e8caaacbd47583c79bf862e5e6a021bcfc3964.tar.gz |
Reduce casts by defining methods for common conversions.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index a229b8a94..33b861445 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -586,7 +586,7 @@ bool ViewStyle::SetElementColour(Element element, ColourRGBA colour) { bool ViewStyle::SetElementColourOptional(Element element, uptr_t wParam, sptr_t lParam) { if (wParam) { - return SetElementColour(element, ColourRGBA::FromRGB(static_cast<int>(lParam))); + return SetElementColour(element, ColourRGBA::FromIpRGB(lParam)); } else { return ResetElement(element); } |