mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 16:40:05 +00:00
County display for alerts, alert cleanup
This commit is contained in:
parent
305e5c3698
commit
c87a77795d
5 changed files with 27 additions and 5 deletions
|
|
@ -31,7 +31,7 @@ public:
|
|||
TextEventManager* self_;
|
||||
|
||||
std::unordered_map<types::TextEventKey,
|
||||
std::list<std::shared_ptr<awips::TextProductMessage>>,
|
||||
std::vector<std::shared_ptr<awips::TextProductMessage>>,
|
||||
types::TextEventHash<types::TextEventKey>>
|
||||
textEventMap_;
|
||||
std::shared_mutex textEventMutex_;
|
||||
|
|
@ -131,7 +131,7 @@ void TextEventManager::Impl::HandleMessage(
|
|||
if (it == textEventMap_.cend())
|
||||
{
|
||||
// If there was no matching event, add the message to a new event
|
||||
textEventMap_.emplace(key, std::list {message});
|
||||
textEventMap_.emplace(key, std::vector {message});
|
||||
messageIndex = 0;
|
||||
updated = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue