guix-register: Use C++11 range 'for' loop instead of 'foreach' macro.
* nix/guix-register/guix-register.cc (register_validity): Use C++11 range 'for' loop instead of 'foreach'.
This commit is contained in:
parent
369755847b
commit
8ac0368e5b
|
@ -204,8 +204,8 @@ register_validity (LocalStore *store, std::istream &input,
|
||||||
cross-device links. Thus, temporarily switch the value of
|
cross-device links. Thus, temporarily switch the value of
|
||||||
'settings.nixStore'. */
|
'settings.nixStore'. */
|
||||||
settings.nixStore = prefix + store_dir;
|
settings.nixStore = prefix + store_dir;
|
||||||
foreach (ValidPathInfos::const_iterator, i, infos)
|
for (auto&& i: infos)
|
||||||
store->optimisePath (prefix + i->path);
|
store->optimisePath (prefix + i.path);
|
||||||
settings.nixStore = store_dir;
|
settings.nixStore = store_dir;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue