rpl::type_erased() -> rpl::type_erased.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user