| 5201 | } |
| 5202 | |
| 5203 | not_null<Folder*> Session::folder(FolderId id) { |
| 5204 | if (const auto result = folderLoaded(id)) { |
| 5205 | return result; |
| 5206 | } |
| 5207 | const auto &[it, ok] = _folders.emplace( |
| 5208 | id, |
| 5209 | std::make_unique<Folder>(this, id)); |
| 5210 | return it->second.get(); |
| 5211 | } |
| 5212 | |
| 5213 | Folder *Session::folderLoaded(FolderId id) const { |
| 5214 | const auto it = _folders.find(id); |
no test coverage detected