mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Storage: Use unique_ptr instead of shared_ptr for Entry.
This commit is contained in:
@@ -85,8 +85,8 @@ class Storage {
|
||||
SequenceNumber seq_num;
|
||||
};
|
||||
|
||||
typedef llvm::StringMap<std::shared_ptr<Entry>> EntriesMap;
|
||||
typedef std::vector<std::shared_ptr<Entry>> IdMap;
|
||||
typedef llvm::StringMap<std::unique_ptr<Entry>> EntriesMap;
|
||||
typedef std::vector<Entry*> IdMap;
|
||||
|
||||
mutable std::mutex m_mutex;
|
||||
EntriesMap m_entries;
|
||||
|
||||
Reference in New Issue
Block a user