From 1681b7fc9da6d455ab73a96816a47f6ba263017c Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 15 Feb 2024 15:19:01 +1100 Subject: Avoid reinterpret_cast and add const. --- src/Editor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index b1b426dff..dfc25d72d 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -668,6 +668,7 @@ protected: // ScintillaBase subclass needs access to much of Editor static Scintilla::sptr_t StringResult(Scintilla::sptr_t lParam, const char *val) noexcept; static Scintilla::sptr_t BytesResult(Scintilla::sptr_t lParam, const unsigned char *val, size_t len) noexcept; + static Scintilla::sptr_t BytesResult(Scintilla::sptr_t lParam, std::string_view sv) noexcept; // Set a variable controlling appearance to a value and invalidates the display // if a change was made. Avoids extra text and the possibility of mistyping. -- cgit v1.2.3