diff options
Diffstat (limited to 'wx+/no_flicker.h')
-rw-r--r-- | wx+/no_flicker.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/wx+/no_flicker.h b/wx+/no_flicker.h index 1c91bd48..9f91bbdb 100644 --- a/wx+/no_flicker.h +++ b/wx+/no_flicker.h @@ -55,9 +55,8 @@ void setTextWithUrls(wxRichTextCtrl& richCtrl, const wxString& newText) for (auto it = newText.begin();;) { - const wchar_t urlPrefix[] = L"https://"; - const auto itUrl = std::search(it, newText.end(), - urlPrefix, urlPrefix + strLength(urlPrefix)); + const std::wstring_view urlPrefix = L"https://"; + const auto itUrl = std::search(it, newText.end(), urlPrefix.begin(), urlPrefix.end()); if (it != itUrl) blocks.emplace_back(BlockType::text, wxString(it, itUrl)); |