aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-01-05 14:52:24 +1100
committerNeil <nyamatongwe@gmail.com>2020-01-05 14:52:24 +1100
commitdbb7374c185718655dd77c294eb281e8b93c538e (patch)
tree15f5a89f168f537aa9d4b7f5bc8f03e0afcd1b6a /qt
parentca79b65eea2653ecbf62eb0f1d0caf4ff6dea601 (diff)
downloadscintilla-mirror-dbb7374c185718655dd77c294eb281e8b93c538e.tar.gz
Backport: Fix some warnings.
Backport of changeset 7921:4b676e61f983.
Diffstat (limited to 'qt')
-rw-r--r--qt/ScintillaEditBase/PlatQt.cpp4
-rw-r--r--qt/ScintillaEditBase/PlatQt.h2
-rw-r--r--qt/ScintillaEditBase/ScintillaQt.cpp2
3 files changed, 4 insertions, 4 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";
diff --git a/qt/ScintillaEditBase/PlatQt.h b/qt/ScintillaEditBase/PlatQt.h
index 26ea7406f..fb323b010 100644
--- a/qt/ScintillaEditBase/PlatQt.h
+++ b/qt/ScintillaEditBase/PlatQt.h
@@ -127,7 +127,7 @@ public:
void SetDBCSMode(int codePage_) override;
void BrushColour(ColourDesired back);
- void SetCodec(Font &font);
+ void SetCodec(const Font &font);
void SetFont(Font &font);
QPaintDevice *GetPaintDevice();
diff --git a/qt/ScintillaEditBase/ScintillaQt.cpp b/qt/ScintillaEditBase/ScintillaQt.cpp
index 87e05f12d..1ad4a84b3 100644
--- a/qt/ScintillaEditBase/ScintillaQt.cpp
+++ b/qt/ScintillaEditBase/ScintillaQt.cpp
@@ -37,7 +37,7 @@ ScintillaQt::ScintillaQt(QAbstractScrollArea *parent)
// On OS X drawing text into a pixmap moves it around 1 pixel to
// the right compared to drawing it directly onto a window.
// Buffered drawing turned off by default to avoid this.
- WndProc(SCI_SETBUFFEREDDRAW, false, 0);
+ view.bufferedDraw = false;
Init();