Show
Ignore:
Timestamp:
11/25/09 12:14:38 (15 years ago)
Author:
mido
Message:

ASTYLER RUN OVER THE WHOLE LIBRARY, JUPEE

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/shared_ptr.h

    r706 r737  
    5050        } 
    5151 
    52         /*!  
     52        /*! 
    5353          Constructs a shared_ptr that owns the pointer p (unless p 
    5454          is NULL, in which case this constructor creates an empty 
     
    123123        */ 
    124124        T *operator->() { 
    125                 if ( !payload) {abort();};// "dereferencing NULL" ); 
     125                if ( !payload ) { 
     126                        abort(); 
     127                };// "dereferencing NULL" ); 
    126128                return payload; 
    127129        } 
     
    190192        template<typename U> 
    191193        operator shared_ptr<const U>() const { 
    192                 shared_ptr<const U> cptr;                
     194                shared_ptr<const U> cptr; 
    193195                cptr.refCnt = refCnt; 
    194196                cptr.payload = payload; 
     
    227229}; 
    228230 
    229 //! Compare shared pointers  
     231//! Compare shared pointers 
    230232template<typename T, typename U> 
    231233bool operator== ( shared_ptr<T> const &a, shared_ptr<U> const &b ) { 
     
    233235} 
    234236 
    235 //! Compare shared pointers  
     237//! Compare shared pointers 
    236238template<typename T, typename U> 
    237239bool operator!= ( shared_ptr<T> const &a, shared_ptr<U> const &b ) { 
     
    239241} 
    240242 
    241 //! Compare shared pointers  
     243//! Compare shared pointers 
    242244template<typename T, typename U> 
    243245bool operator< ( shared_ptr<T> const &a, shared_ptr<U> const &b ) { 
     
    253255 */ 
    254256template <typename T> 
    255 class object_ptr : public shared_ptr<T> 
    256 { 
     257class object_ptr : public shared_ptr<T> { 
    257258public: 
    258259        /*! 
     
    272273        } 
    273274 
    274         /*!  
     275        /*! 
    275276          Constructs an object_ptr that owns the pointer p. p must 
    276277          have been alllocated by new!