use structured binding declarations
Shorter. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:

committed by
Max Kellermann

parent
da642b2890
commit
44378b7dbe
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user