aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/PlatQt.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-14 13:57:03 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-14 13:57:03 +1000
commit7a4fd484cc8229d3518039c82d950b4fa7f673cb (patch)
tree56eb3385ec0c7da13691236af5c9b1d78b851b22 /qt/ScintillaEditBase/PlatQt.h
parent8e94953b2d9f7d946445759fe31d169879b680c8 (diff)
downloadscintilla-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.h2
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);
}