Fix re-used variable inside a loop.
authorCarl Hetherington <cth@carlh.net>
Thu, 2 Dec 2021 22:54:27 +0000 (23:54 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 3 Dec 2021 20:23:07 +0000 (21:23 +0100)
src/lib/dcp.cc

index abdfc7f9eaad8aa92b223a44bab1c87f1f663dc1..ff5414fb07f5474bfaa964799b8139c5b9a3273e 100644 (file)
@@ -70,8 +70,8 @@ DCP::cpls () const
                }
                dcps.push_back (dcp);
                LOG_GENERAL ("Reading DCP %1: %2 CPLs", i.string(), dcp->cpls().size());
-               for (auto i: dcp->cpls()) {
-                       cpls.push_back (i);
+               for (auto j: dcp->cpls()) {
+                       cpls.push_back (j);
                }
        }