зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
c903885dba
Коммит
b623f344d3
|
@ -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());
|
||||
|
|
Загрузка…
Ссылка в новой задаче