diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-06-10 13:55:23 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-06-10 13:55:23 +0200 |
commit | 8ac0368e5b141f098edb67f228158cd6bad142f2 (patch) | |
tree | 85a626876b45944f8d3f122475d307c46f7a73ca | |
parent | 369755847b942806efe710b88146311849046017 (diff) | |
download | guix-8ac0368e5b141f098edb67f228158cd6bad142f2.tar guix-8ac0368e5b141f098edb67f228158cd6bad142f2.tar.gz |
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'.
-rw-r--r-- | nix/guix-register/guix-register.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/guix-register/guix-register.cc b/nix/guix-register/guix-register.cc index f8f0eab4c2..16dae62b3d 100644 --- a/nix/guix-register/guix-register.cc +++ b/nix/guix-register/guix-register.cc @@ -204,8 +204,8 @@ register_validity (LocalStore *store, std::istream &input, cross-device links. Thus, temporarily switch the value of 'settings.nixStore'. */ settings.nixStore = prefix + store_dir; - foreach (ValidPathInfos::const_iterator, i, infos) - store->optimisePath (prefix + i->path); + for (auto&& i: infos) + store->optimisePath (prefix + i.path); settings.nixStore = store_dir; } } |