mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
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:
parent
7a5967a752
commit
28243cf27e
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user