about summary refs log tree commit diff
path: root/src/libstore/upgrade-schema.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/upgrade-schema.cc')
-rw-r--r--src/libstore/upgrade-schema.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/upgrade-schema.cc b/src/libstore/upgrade-schema.cc
index 450a7c8d06f5..c2fb8915555d 100644
--- a/src/libstore/upgrade-schema.cc
+++ b/src/libstore/upgrade-schema.cc
@@ -73,7 +73,7 @@ void LocalStore::upgradeStore12()
     Paths paths;
     nixDB.enumTable(noTxn, dbValidPaths, paths);
     
-    for (Paths::iterator i = paths.begin(); i != paths.end(); ++i) {
+    foreach (Paths::iterator, i, paths) {
         ValidPathInfo info;
         info.path = *i;