diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-04-07 11:20:24 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-04-07 11:20:24 +1000 |
| commit | ce31c41db1ae2be0f0f3186c94eb8bc4a93b260c (patch) | |
| tree | ab749610acce7b1ed80002c622728d0681673494 | |
| parent | 33869bf8036e059df92468ae3efc80df4d246bbd (diff) | |
| download | scintilla-mirror-ce31c41db1ae2be0f0f3186c94eb8bc4a93b260c.tar.gz | |
Backport: Use const as avoids warning.
Backport of changeset 8127:3558673f7706.
| -rw-r--r-- | qt/ScintillaEditBase/PlatQt.cpp | 2 | ||||
| -rw-r--r-- | qt/ScintillaEditBase/PlatQt.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.cpp b/qt/ScintillaEditBase/PlatQt.cpp index 2a51050d5..9f522e678 100644 --- a/qt/ScintillaEditBase/PlatQt.cpp +++ b/qt/ScintillaEditBase/PlatQt.cpp @@ -247,7 +247,7 @@ void SurfaceImpl::SetCodec(const Font &font) } } -void SurfaceImpl::SetFont(Font &font) +void SurfaceImpl::SetFont(const Font &font) { if (font.GetID()) { GetPainter()->setFont(*FontPointer(font)); diff --git a/qt/ScintillaEditBase/PlatQt.h b/qt/ScintillaEditBase/PlatQt.h index fb323b010..0243de444 100644 --- a/qt/ScintillaEditBase/PlatQt.h +++ b/qt/ScintillaEditBase/PlatQt.h @@ -128,7 +128,7 @@ public: void BrushColour(ColourDesired back); void SetCodec(const Font &font); - void SetFont(Font &font); + void SetFont(const Font &font); QPaintDevice *GetPaintDevice(); void SetPainter(QPainter *painter); |
