From 3fc8c97d80a6797e60e6b203c9b4aa9d553df8a7 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 14 May 2018 13:57:03 +1000 Subject: Modernize Platform.h (2) - noexcept, const, constexpr. ColourDesired is an int instead of long for consistency over different platforms. Changes made to Point, PRectangle, and ColourDesired. RoundXYPosition removed. --- src/ViewStyle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ViewStyle.h') diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 2a4e7329a..800d8cb67 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -68,7 +68,7 @@ public: bool isSet; ColourOptional(ColourDesired colour_=ColourDesired(0,0,0), bool isSet_=false) : ColourDesired(colour_), isSet(isSet_) { } - ColourOptional(uptr_t wParam, sptr_t lParam) : ColourDesired(static_cast(lParam)), isSet(wParam != 0) { + ColourOptional(uptr_t wParam, sptr_t lParam) : ColourDesired(static_cast(lParam)), isSet(wParam != 0) { } }; @@ -84,7 +84,7 @@ struct EdgeProperties { column(column_), colour(colour_) { } EdgeProperties(uptr_t wParam, sptr_t lParam) : - column(static_cast(wParam)), colour(static_cast(lParam)) { + column(static_cast(wParam)), colour(static_cast(lParam)) { } }; -- cgit v1.2.3