~thopiekar/zypper/libzypp-manual-import

« back to all changes in this revision

Viewing changes to zypp/sat/WhatProvides.cc

  • Committer: Thomas-Karl Pietrowski
  • Date: 2015-08-15 15:59:50 UTC
  • Revision ID: thopiekar@googlemail.com-20150815155950-j66qn38efmvn289t
syncing with "changes 15.13.0 (11)"  #9a0aca7e3a21d768491b141a8ae86ef0c3fbc227
* https://github.com/openSUSE/libzypp/commit/9a0aca7e3a21d768491b141a8ae86ef0c3fbc227

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
        : _offset( offset_r ), _private( 0 )
50
50
        {}
51
51
 
52
 
        Impl( const std::tr1::unordered_set<detail::IdType> & ids_r )
 
52
        Impl( const std::unordered_set<detail::IdType> & ids_r )
53
53
        : _offset( 0 ), _private( 0 )
54
54
        {
55
55
           // use private data to store the result (incl. trailing NULL)
75
75
 
76
76
      /** WhatProvides ctor helper collecting providers from Capabilies. */
77
77
      template <class Iterator>
78
 
      void collectProviders( Iterator begin_r, Iterator end_r, std::tr1::unordered_set<detail::IdType> & collect_r )
 
78
      void collectProviders( Iterator begin_r, Iterator end_r, std::unordered_set<detail::IdType> & collect_r )
79
79
      {
80
80
        for_( it, begin_r, end_r )
81
81
        {
106
106
 
107
107
    WhatProvides::WhatProvides( Capabilities caps_r )
108
108
    {
109
 
      std::tr1::unordered_set<detail::IdType> ids;
 
109
      std::unordered_set<detail::IdType> ids;
110
110
      collectProviders( caps_r.begin(), caps_r.end(), ids );
111
111
      if ( ! ids.empty() )
112
112
      {
117
117
 
118
118
    WhatProvides::WhatProvides( const CapabilitySet & caps_r )
119
119
    {
120
 
      std::tr1::unordered_set<detail::IdType> ids;
 
120
      std::unordered_set<detail::IdType> ids;
121
121
      collectProviders( caps_r.begin(), caps_r.end(), ids );
122
122
      if ( ! ids.empty() )
123
123
      {