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 | 7a4fd484cc8229d3518039c82d950b4fa7f673cb (patch) | |
tree | 56eb3385ec0c7da13691236af5c9b1d78b851b22 /qt/ScintillaEditBase/PlatQt.h | |
parent | 8e94953b2d9f7d946445759fe31d169879b680c8 (diff) | |
download | scintilla-mirror-7a4fd484cc8229d3518039c82d950b4fa7f673cb.tar.gz |
Backport: 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.
Backport of changeset 6939:7441dcb96e6a.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.h')
-rw-r--r-- | qt/ScintillaEditBase/PlatQt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.h b/qt/ScintillaEditBase/PlatQt.h index 8a5edeacd..653399dbc 100644 --- a/qt/ScintillaEditBase/PlatQt.h +++ b/qt/ScintillaEditBase/PlatQt.h @@ -24,7 +24,7 @@ const char *CharacterSetID(int characterSet); inline QColor QColorFromCA(ColourDesired ca) { - long c = ca.AsLong(); + long c = ca.AsInteger(); return QColor(c & 0xff, (c >> 8) & 0xff, (c >> 16) & 0xff); } |