Part of patch by kaliber: Fixed OpenHashElementArray<Element>::Add(

const Element &newElement), element is a pointer. See ticket #5892 (found
by compiling Haiku with clang).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36909 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2010-05-23 12:41:15 +00:00
parent b1784a9dbd
commit e4200ae30c
+1 -1
View File
@@ -447,7 +447,7 @@ OpenHashElementArray<Element>::Add(const Element &newElement)
{
Element *element = Add();
if (element)
element.Adopt(newElement);
element->Adopt(newElement);
return element;
}