mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fix build with Xcode.
This commit is contained in:
@@ -563,7 +563,10 @@ template <typename Flags>
|
||||
{ entry.icon });
|
||||
const auto toggle = Ui::CreateChild<Ui::RpWidget>(
|
||||
button.get());
|
||||
auto &lifetime = toggle->lifetime();
|
||||
|
||||
// Looks like a bug in Clang, fails to compile with 'auto&' below.
|
||||
rpl::lifetime &lifetime = toggle->lifetime();
|
||||
|
||||
const auto checkView = lifetime.make_state<Ui::ToggleView>(
|
||||
st.toggle,
|
||||
toggled,
|
||||
|
||||
Reference in New Issue
Block a user