diff options
author | Neil <nyamatongwe@gmail.com> | 2024-02-15 15:19:01 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-02-15 15:19:01 +1100 |
commit | 1681b7fc9da6d455ab73a96816a47f6ba263017c (patch) | |
tree | f022f07982a81d5ab8effa7400a23c743c9e4ae0 /src/Editor.h | |
parent | d18e8a8feb9d6e91f2bb2402166c85a0e1abe8fd (diff) | |
download | scintilla-mirror-1681b7fc9da6d455ab73a96816a47f6ba263017c.tar.gz |
Avoid reinterpret_cast and add const.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 1 |
1 files changed, 1 insertions, 0 deletions
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. |