refactor(linkparser): take string views (#6715)

Reviewed-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Nerixyz
2026-01-05 23:53:58 +01:00
committed by GitHub
parent 6110c32916
commit 90373323ec
7 changed files with 20 additions and 14 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ Q_ALWAYS_INLINE bool isValidDomainChar(char16_t c)
namespace chatterino::linkparser {
std::optional<Parsed> parse(const QString &source) noexcept
std::optional<Parsed> parse(QStringView source) noexcept
{
using SizeType = QString::size_type;