[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/07: guix-register: Use C++11 range 'for' loop instead of 'foreach' ma
From: |
Ludovic Courtès |
Subject: |
07/07: guix-register: Use C++11 range 'for' loop instead of 'foreach' macro. |
Date: |
Wed, 10 Jun 2015 12:00:47 +0000 |
civodul pushed a commit to branch master
in repository guix.
commit 8ac0368e5b141f098edb67f228158cd6bad142f2
Author: Ludovic Courtès <address@hidden>
Date: Wed Jun 10 13:55:23 2015 +0200
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'.
---
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 f8f0eab..16dae62 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;
}
}
- branch master updated (329d13b -> 8ac0368), Ludovic Courtès, 2015/06/10
- 05/07: tests: Make the daemon socket explicit in guix-register test., Ludovic Courtès, 2015/06/10
- 02/07: ui: Replace the global 'symlink' binding., Ludovic Courtès, 2015/06/10
- 04/07: guix system: init: Overwrite the items in the target store., Ludovic Courtès, 2015/06/10
- 07/07: guix-register: Use C++11 range 'for' loop instead of 'foreach' macro.,
Ludovic Courtès <=
- 06/07: guix-register: Perform deduplication even when --prefix is passed., Ludovic Courtès, 2015/06/10
- 03/07: install: Really overwrite TARGET/var/guix/profiles/system-1-link., Ludovic Courtès, 2015/06/10
- 01/07: doc: Add 'help2man' to HACKING., Ludovic Courtès, 2015/06/10