Minor scoped_* fix (px -> ptr) (Thanks to Bertolt Mildner)

[SVN r14619]
This commit is contained in:
Peter Dimov
2002-07-26 14:18:21 +00:00
parent 927fe73093
commit 5328674c2d
2 changed files with 4 additions and 4 deletions

View File

@@ -75,12 +75,12 @@ public:
operator unspecified_bool_type() const // never throws operator unspecified_bool_type() const // never throws
{ {
return px == 0? 0: &this_type::get; return ptr == 0? 0: &this_type::get;
} }
bool operator! () const // never throws bool operator! () const // never throws
{ {
return px == 0; return ptr == 0;
} }
void swap(scoped_array & b) // never throws void swap(scoped_array & b) // never throws

View File

@@ -91,12 +91,12 @@ public:
operator unspecified_bool_type() const // never throws operator unspecified_bool_type() const // never throws
{ {
return px == 0? 0: &this_type::get; return ptr == 0? 0: &this_type::get;
} }
bool operator! () const // never throws bool operator! () const // never throws
{ {
return px == 0; return ptr == 0;
} }
void swap(scoped_ptr & b) // never throws void swap(scoped_ptr & b) // never throws