diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-05-14 13:57:03 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-05-14 13:57:03 +1000 | 
| commit | 3fc8c97d80a6797e60e6b203c9b4aa9d553df8a7 (patch) | |
| tree | 9875855a197986e4ba8bf8ab1e8a491d1d1b321f /src/ViewStyle.h | |
| parent | 9948c490832acd4d211070adfef982d1c0e8b4c4 (diff) | |
| download | scintilla-mirror-3fc8c97d80a6797e60e6b203c9b4aa9d553df8a7.tar.gz | |
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.
Diffstat (limited to 'src/ViewStyle.h')
| -rw-r--r-- | src/ViewStyle.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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<long>(lParam)), isSet(wParam != 0) { +	ColourOptional(uptr_t wParam, sptr_t lParam) : ColourDesired(static_cast<int>(lParam)), isSet(wParam != 0) {  	}  }; @@ -84,7 +84,7 @@ struct EdgeProperties {  		column(column_), colour(colour_) {  	}  	EdgeProperties(uptr_t wParam, sptr_t lParam) : -		column(static_cast<int>(wParam)), colour(static_cast<long>(lParam)) { +		column(static_cast<int>(wParam)), colour(static_cast<int>(lParam)) {  	}  }; | 
