X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=zypp%2Fsolver%2Fdetail%2FSATResolver.cc;h=77ba1139f201e263da42c686a9cbe74c9669730c;hb=57f0b183ee76e8d44a406ec8308a1544cc739658;hp=95bab116f92acf7f912ae0db6b725e6cba27d991;hpb=e1127b23bd43d078a379307f92bb388256fc0b36;p=platform%2Fupstream%2Flibzypp.git diff --git a/zypp/solver/detail/SATResolver.cc b/zypp/solver/detail/SATResolver.cc index 95bab11..77ba113 100644 --- a/zypp/solver/detail/SATResolver.cc +++ b/zypp/solver/detail/SATResolver.cc @@ -418,22 +418,20 @@ class CheckIfUpdate : public resfilter::PoolItemFilterFunctor { public: bool is_updated; - bool multiversion; sat::Solvable _installed; - CheckIfUpdate( sat::Solvable installed_r ) - : is_updated( false ) - , multiversion( installed_r.multiversionInstall() ) - , _installed( installed_r ) + CheckIfUpdate( const sat::Solvable & installed_r ) + : is_updated( false ) + , _installed( installed_r ) {} // check this item will be updated - bool operator()( PoolItem item ) + bool operator()( const PoolItem & item ) { if ( item.status().isToBeInstalled() ) { - if ( ! multiversion || sameNVRA( _installed, item ) ) + if ( ! item.multiversionInstall() || sameNVRA( _installed, item ) ) { is_updated = true; return false;