[PATCH setup 05/11] Use const version of packageversion::depends() in PrereqChecker

Jon Turney jon.turney@dronecode.org.uk
Fri Apr 28 12:13:00 GMT 2017


---
 prereq.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/prereq.cc b/prereq.cc
index 0d3b93c..4b6cd68 100644
--- a/prereq.cc
+++ b/prereq.cc
@@ -211,10 +211,10 @@ PrereqChecker::isMet ()
 
       // Fetch the dependencies of the package. This assumes that the
       // dependencies of the prev, curr, and exp versions are all the same.
-      vector <vector <PackageSpecification *> *> *deps = pack->curr.depends ();
+      const vector <vector <PackageSpecification *> *> *deps = pack->curr.depends ();
 
       // go through the package's dependencies
-      for (vector <vector <PackageSpecification *> *>::iterator d =
+      for (vector <vector <PackageSpecification *> *>::const_iterator d =
             deps->begin (); d != deps->end (); ++d)
         {
           // XXX: the following assumes that there is only a single
-- 
2.12.2



More information about the Cygwin-apps mailing list