aboutsummaryrefslogtreecommitdiffhomepage
path: root/qt/ScintillaEditBase/PlatQt.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-14 14:39:55 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-14 14:39:55 +1000
commit3fe056899ac8ad4882f59e196aaa56cd31c2e547 (patch)
treedcbd61fefbf0dad1472713d890b7c9d6fc8d4814 /qt/ScintillaEditBase/PlatQt.h
parentc4aa7826f3d2178e39e5bff2f6886d7d3d3f46d7 (diff)
downloadscintilla-mirror-3fe056899ac8ad4882f59e196aaa56cd31c2e547.tar.gz
Modernize Platform.h (4) - update Surface to use string_view for text arguments.
Diffstat (limited to 'qt/ScintillaEditBase/PlatQt.h')
-rw-r--r--qt/ScintillaEditBase/PlatQt.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/qt/ScintillaEditBase/PlatQt.h b/qt/ScintillaEditBase/PlatQt.h
index 07da76682..a03271653 100644
--- a/qt/ScintillaEditBase/PlatQt.h
+++ b/qt/ScintillaEditBase/PlatQt.h
@@ -97,14 +97,14 @@ public:
void Copy(PRectangle rc, Point from, Surface &surfaceSource) override;
void DrawTextNoClip(PRectangle rc, Font &font, XYPOSITION ybase,
- const char *s, int len, ColourDesired fore, ColourDesired back) override;
+ std::string_view text, ColourDesired fore, ColourDesired back) override;
void DrawTextClipped(PRectangle rc, Font &font, XYPOSITION ybase,
- const char *s, int len, ColourDesired fore, ColourDesired back) override;
+ std::string_view text, ColourDesired fore, ColourDesired back) override;
void DrawTextTransparent(PRectangle rc, Font &font, XYPOSITION ybase,
- const char *s, int len, ColourDesired fore) override;
- void MeasureWidths(Font &font, const char *s, int len,
+ std::string_view text, ColourDesired fore) override;
+ void MeasureWidths(Font &font, std::string_view text,
XYPOSITION *positions) override;
- XYPOSITION WidthText(Font &font, const char *s, int len) override;
+ XYPOSITION WidthText(Font &font, std::string_view text) override;
XYPOSITION Ascent(Font &font) override;
XYPOSITION Descent(Font &font) override;
XYPOSITION InternalLeading(Font &font) override;