Wrapped raw SectionMemento with unique_ptr.

This commit is contained in:
23rd
2020-11-22 01:37:05 +03:00
committed by John Preston
parent de6b460754
commit c8643aa1ee
25 changed files with 67 additions and 63 deletions
@@ -56,7 +56,7 @@ void SharedMediaShowOverview(
return;
}
}
windows.front()->showSection(Info::Memento(
windows.front()->showSection(std::make_unique<Info::Memento>(
history->peer,
Info::Section(type)));
}