use structured binding declarations

Shorter.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-10-22 01:36:13 -07:00
committed by Max Kellermann
parent da642b2890
commit 44378b7dbe
14 changed files with 45 additions and 57 deletions

View File

@@ -182,8 +182,8 @@ UdisksNeighborExplorer::GetList() const noexcept
NeighborExplorer::List result;
for (const auto &i : by_uri)
result.emplace_front(i.second);
for (const auto &[t, r] : by_uri)
result.emplace_front(r);
return result;
}