ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtutil.h
(Generate patch)

Comparing rxvt-unicode/src/rxvtutil.h (file contents):
Revision 1.56 by root, Fri May 25 07:49:20 2012 UTC vs.
Revision 1.57 by sf-exg, Fri May 25 18:49:59 2012 UTC

135 } 135 }
136 136
137 // void because it makes sense in our context 137 // void because it makes sense in our context
138 void operator =(auto_ptr &a) 138 void operator =(auto_ptr &a)
139 { 139 {
140 *this = a.p; 140 reset (a.release ());
141 a.p = 0;
142 } 141 }
143 142
144 template<typename A> 143 template<typename A>
145 void operator =(auto_ptr<A> &a) 144 void operator =(auto_ptr<A> &a)
146 { 145 {
147 *this = a.p; 146 reset (a.release ());
148 a.p = 0;
149 } 147 }
150 148
151 T *operator ->() const { return p; } 149 T *operator ->() const { return p; }
152 T &operator *() const { return *p; } 150 T &operator *() const { return *p; }
153 151

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines