Allow producer<TextWithEntities>() | map(ToLink).
This commit is contained in:
parent
66ca90c1b2
commit
44161f183c
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ inline constexpr auto Upper = details::ToUpperType{};
|
|||
}
|
||||
|
||||
[[nodiscard]] inline auto ToLink(const QString &url = "internal:action") {
|
||||
return rpl::map([=](const QString &text) {
|
||||
return rpl::map([=](const auto &text) {
|
||||
return Link(text, url);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue