[zypp-commit] r9503 - /trunk/libzypp/zypp/Patch.cc
Author: dmacvicar Date: Thu Apr 10 12:55:59 2008 New Revision: 9503 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9503&view=rev Log: no endless loop Modified: trunk/libzypp/zypp/Patch.cc Modified: trunk/libzypp/zypp/Patch.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Patch.cc?rev=9503&r1=9502&r2=9503&view=diff ============================================================================== --- trunk/libzypp/zypp/Patch.cc (original) +++ trunk/libzypp/zypp/Patch.cc Thu Apr 10 12:55:59 2008 @@ -75,11 +75,11 @@ Patch::Contents Patch::contents() const { Contents result; - const sat::LookupAttr::iterator _col_name_it = sat::LookupAttr( sat::SolvAttr::updateCollectionName, *this ).begin(); - const sat::LookupAttr::iterator _col_evr_it = sat::LookupAttr( sat::SolvAttr::updateCollectionEvr, *this ).begin(); - const sat::LookupAttr::iterator _col_arch_it = sat::LookupAttr( sat::SolvAttr::updateCollectionArch, *this ).begin(); + sat::LookupAttr::iterator _col_name_it(sat::LookupAttr( sat::SolvAttr::updateCollectionName, *this ).begin()); + sat::LookupAttr::iterator _col_evr_it(sat::LookupAttr( sat::SolvAttr::updateCollectionEvr, *this ).begin()); + sat::LookupAttr::iterator _col_arch_it(sat::LookupAttr( sat::SolvAttr::updateCollectionArch, *this ).begin()); - while (_col_name_it != sat::LookupAttr( sat::SolvAttr::updateCollectionName, *this ).end()) + for (;_col_name_it != sat::LookupAttr( sat::SolvAttr::updateCollectionName, *this ).end(); ++_col_name_it, ++_col_evr_it, ++_col_arch_it) { /* safety checks, shouldn't happen (tm) */ if (_col_evr_it == sat::LookupAttr( sat::SolvAttr::updateCollectionEvr, *this ).end() -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
dmacvicar@svn.opensuse.org