fix OS/2 bustage - don't have nsAutoArrayPtr's |operator= ( nsAutoArrayPtr<T>& )| take a const argument, because it needs to call .forget() on the new pointer to transfer ownership, and forget isn't const. r=bbaetz.

This commit is contained in:
bryner%netscape.com 2003-02-22 06:33:00 +00:00
parent 7a5967a752
commit 28243cf27e

View File

@ -573,7 +573,7 @@ class nsAutoArrayPtr
return *this;
}
nsAutoArrayPtr<T>& operator=( const nsAutoArrayPtr<T>& rhs )
nsAutoArrayPtr<T>& operator=( nsAutoArrayPtr<T>& rhs )
// assign by transferring ownership from another smart pointer.
{
assign(rhs.forget());