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
Родитель c903885dba
Коммит b623f344d3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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());