From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12706 invoked by alias); 28 Apr 2017 12:13:08 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 12606 invoked by uid 89); 28 Apr 2017 12:13:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=package's, xxx X-HELO: rgout01.bt.lon5.cpcloud.co.uk Received: from rgout0104.bt.lon5.cpcloud.co.uk (HELO rgout01.bt.lon5.cpcloud.co.uk) (65.20.0.124) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Apr 2017 12:13:06 +0000 X-OWM-Source-IP: 31.51.207.210 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-Junkmail-Premium-Raw: score=8/50,refid=2.7.2:2017.4.26.2416:17:8.707,ip=,rules=NO_URI_FOUND, NO_CTA_URI_FOUND, NO_MESSAGE_ID, NO_URI_HTTPS, TO_MALFORMED Received: from localhost.localdomain (31.51.207.210) by rgout01.bt.lon5.cpcloud.co.uk (9.0.019.13-1) (authenticated as jonturney@btinternet.com) id 58F62BE3012F5597; Fri, 28 Apr 2017 13:13:08 +0100 From: Jon Turney To: cygwin-apps@cygwin.com Cc: Jon Turney Subject: [PATCH setup 05/11] Use const version of packageversion::depends() in PrereqChecker Date: Fri, 28 Apr 2017 12:13:00 -0000 Message-Id: <20170428121205.12240-6-jon.turney@dronecode.org.uk> In-Reply-To: <20170428121205.12240-1-jon.turney@dronecode.org.uk> References: <20170428121205.12240-1-jon.turney@dronecode.org.uk> X-SW-Source: 2017-04/txt/msg00094.txt.bz2 --- 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 *> *deps = pack->curr.depends (); + const vector *> *deps = pack->curr.depends (); // go through the package's dependencies - for (vector *>::iterator d = + for (vector *>::const_iterator d = deps->begin (); d != deps->end (); ++d) { // XXX: the following assumes that there is only a single -- 2.12.2