From b5e8caaacbd47583c79bf862e5e6a021bcfc3964 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 9 Jun 2021 12:15:05 +1000 Subject: Reduce casts by defining methods for common conversions. --- src/ViewStyle.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ViewStyle.cxx') 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(lParam))); + return SetElementColour(element, ColourRGBA::FromIpRGB(lParam)); } else { return ResetElement(element); } -- cgit v1.2.3