Ticket #11512: boost_1_59_0.signal2.wshadow.patch

File boost_1_59_0.signal2.wshadow.patch, 2.4 KB (added by davido, 7 years ago)
  • boost/signals2/connection.hpp

    diff -ru boost.orig/boost/signals2/connection.hpp boost/boost/signals2/connection.hpp
    old new  
    6868          nolock_disconnect(local_lock);
    6969        }
    7070        template<typename Mutex>
    71         void nolock_disconnect(garbage_collecting_lock<Mutex> &lock) const
     71        void nolock_disconnect(garbage_collecting_lock<Mutex> &lock_) const
    7272        {
    7373          if(_connected)
    7474          {
    7575            _connected = false;
    76             dec_slot_refcount(lock);
     76            dec_slot_refcount(lock_);
    7777          }
    7878        }
    7979        virtual bool connected() const = 0;
     
    118118        // shared_ptr to the slot in the garbage collecting lock,
    119119        // which will destroy the slot only after it unlocks.
    120120        template<typename Mutex>
    121         void dec_slot_refcount(garbage_collecting_lock<Mutex> &lock) const
     121        void dec_slot_refcount(garbage_collecting_lock<Mutex> &lock_arg) const
    122122        {
    123123          BOOST_ASSERT(m_slot_refcount != 0);
    124124          if(--m_slot_refcount == 0)
    125125          {
    126             lock.add_trash(release_slot());
     126            lock_arg.add_trash(release_slot());
    127127          }
    128128        }
    129129
     
    155155        const GroupKey& group_key() const {return _group_key;}
    156156        void set_group_key(const GroupKey &key) {_group_key = key;}
    157157        template<typename M>
    158         void disconnect_expired_slot(garbage_collecting_lock<M> &lock)
     158        void disconnect_expired_slot(garbage_collecting_lock<M> &lock_arg)
    159159        {
    160160          if(!m_slot) return;
    161161          bool expired = slot().expired();
    162162          if(expired == true)
    163163          {
    164             nolock_disconnect(lock);
     164            nolock_disconnect(lock_arg);
    165165          }
    166166        }
    167167        template<typename M, typename OutputIterator>
    168         void nolock_grab_tracked_objects(garbage_collecting_lock<M> &lock,
     168        void nolock_grab_tracked_objects(garbage_collecting_lock<M> &lock_arg,
    169169          OutputIterator inserter) const
    170170        {
    171171          if(!m_slot) return;
     
    184184            );
    185185            if(apply_visitor(detail::expired_weak_ptr_visitor(), *it))
    186186            {
    187               nolock_disconnect(lock);
     187              nolock_disconnect(lock_arg);
    188188              return;
    189189            }
    190190            *inserter++ = locked_object;