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 /qt/ScintillaEditBase/PlatQt.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 '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 95a84eaf8..00a9645ef 100644 --- a/qt/ScintillaEditBase/PlatQt.h +++ b/qt/ScintillaEditBase/PlatQt.h @@ -26,7 +26,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); } |