mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Replaced std::map with flat_map for selected items in history list.
This commit is contained in:
@@ -256,7 +256,8 @@ private:
|
||||
|
||||
using ChosenReaction = HistoryView::Reactions::ChosenReaction;
|
||||
using VideoUserpic = Dialogs::Ui::VideoUserpic;
|
||||
using SelectedItems = std::map<HistoryItem*, TextSelection, std::less<>>;
|
||||
using SelectedItems
|
||||
= base::flat_map<HistoryItem*, TextSelection, std::less<>>;
|
||||
enum class MouseAction {
|
||||
None,
|
||||
PrepareDrag,
|
||||
|
||||
@@ -237,7 +237,7 @@ void AddDownloadFilesAction(
|
||||
void AddDownloadFilesAction(
|
||||
not_null<Ui::PopupMenu*> menu,
|
||||
not_null<Window::SessionController*> window,
|
||||
const std::map<HistoryItem*, TextSelection, std::less<>> &items,
|
||||
const base::flat_map<HistoryItem*, TextSelection, std::less<>> &items,
|
||||
not_null<HistoryInner*> list) {
|
||||
if (items.empty()) {
|
||||
return;
|
||||
|
||||
@@ -35,7 +35,7 @@ void AddDownloadFilesAction(
|
||||
not_null<Ui::PopupMenu*> menu,
|
||||
not_null<Window::SessionController*> window,
|
||||
// From the legacy history inner widget.
|
||||
const std::map<HistoryItem*, TextSelection, std::less<>> &items,
|
||||
const base::flat_map<HistoryItem*, TextSelection, std::less<>> &items,
|
||||
not_null<HistoryInner*> list);
|
||||
|
||||
} // namespace Menu
|
||||
|
||||
Reference in New Issue
Block a user