mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-13 13:02:09 +00:00
SysConf: Return emplaced reference from AddEntry()
Allows GetOrAddEntry() to be implemented in a manner that doesn't result in a redundant lookup in the event an addition needs to be made.
This commit is contained in:
parent
74224c94a7
commit
05094ab51f
2 changed files with 5 additions and 5 deletions
|
@ -75,7 +75,7 @@ public:
|
|||
std::vector<u8> bytes;
|
||||
};
|
||||
|
||||
void AddEntry(Entry&& entry);
|
||||
Entry& AddEntry(Entry&& entry);
|
||||
Entry* GetEntry(std::string_view key);
|
||||
const Entry* GetEntry(std::string_view key) const;
|
||||
Entry* GetOrAddEntry(std::string_view key, Entry::Type type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue