rpl::type_erased() -> rpl::type_erased.

This commit is contained in:
John Preston
2025-12-10 14:27:05 +04:00
parent 03e1e5cca9
commit 03df5b8546
55 changed files with 93 additions and 93 deletions

View File

@@ -457,7 +457,7 @@ void FillPeerQrBox(
const auto usernameValue = [=] {
return (customLink || !peer)
? (rpl::single(QString()) | rpl::type_erased())
? (rpl::single(QString()) | rpl::type_erased)
: Info::Profile::UsernameValue(peer, true) | rpl::map(
[](const auto &username) { return username.text; });
};
@@ -467,7 +467,7 @@ void FillPeerQrBox(
: peer
? Info::Profile::LinkValue(peer, true) | rpl::map(
[](const auto &link) { return link.text; })
: (rpl::single(QString()) | rpl::type_erased());
: (rpl::single(QString()) | rpl::type_erased);
};
const auto userpic = Ui::CreateChild<Ui::RpWidget>(box);

View File

@@ -239,9 +239,9 @@ void AboutRatingBox(
? tr::lng_stars_rating_about(
lt_name,
rpl::single(TextWithEntities{ name }),
Text::RichLangValue) | rpl::type_erased()
Text::RichLangValue) | rpl::type_erased
: tr::lng_stars_rating_about_your(
Text::RichLangValue) | rpl::type_erased();
Text::RichLangValue) | rpl::type_erased;
if (data.level < 0) {
auto text = (data.stars < 0)

View File

@@ -169,7 +169,7 @@ void AddExpandablePeerList(
(u"(%1) "_q).arg(it->second)
}.append(richName);
})
: std::move(name) | rpl::type_erased(),
: std::move(name) | rpl::type_erased,
st::defaultBoxCheckbox,
std::make_unique<Ui::CheckView>(
st::defaultCheck,