diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-01-05 14:52:24 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-01-05 14:52:24 +1100 |
| commit | dbb7374c185718655dd77c294eb281e8b93c538e (patch) | |
| tree | 15f5a89f168f537aa9d4b7f5bc8f03e0afcd1b6a /qt/ScintillaEditBase/PlatQt.cpp | |
| parent | ca79b65eea2653ecbf62eb0f1d0caf4ff6dea601 (diff) | |
| download | scintilla-mirror-dbb7374c185718655dd77c294eb281e8b93c538e.tar.gz | |
Backport: Fix some warnings.
Backport of changeset 7921:4b676e61f983.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.cpp')
| -rw-r--r-- | qt/ScintillaEditBase/PlatQt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index 78f4e6eca..2a51050d5 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -219,7 +219,7 @@ void SurfaceImpl::Release() bool SurfaceImpl::Initialised() { - return device != 0; + return device != nullptr; } void SurfaceImpl::PenColour(ColourDesired fore) @@ -234,7 +234,7 @@ void SurfaceImpl::BrushColour(ColourDesired back) GetPainter()->setBrush(QBrush(QColorFromCA(back))); } -void SurfaceImpl::SetCodec(Font &font) +void SurfaceImpl::SetCodec(const Font &font) { if (font.GetID()) { const char *csid = "UTF-8"; |
