Bug 555673 FramePropertyTable.cpp failed to compile with Sun Studio on Solaris r=roc

This commit is contained in:
Ginn Chen 2010-03-29 19:43:35 +08:00
Родитель dfeb213e0d
Коммит 73dbd6bb74
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -70,7 +70,7 @@ FramePropertyTable::Set(nsIFrame* aFrame, const FramePropertyDescriptor* aProper
// We need to expand the single current entry to an array // We need to expand the single current entry to an array
PropertyValue current = entry->mProp; PropertyValue current = entry->mProp;
entry->mProp.mProperty = nsnull; entry->mProp.mProperty = nsnull;
PR_STATIC_ASSERT(sizeof(nsTArray<PropertyValue>) <= sizeof(entry->mProp.mValue)); PR_STATIC_ASSERT(sizeof(nsTArray<PropertyValue>) <= sizeof(void *));
new (&entry->mProp.mValue) nsTArray<PropertyValue>(4); new (&entry->mProp.mValue) nsTArray<PropertyValue>(4);
entry->mProp.ToArray()->AppendElement(current); entry->mProp.ToArray()->AppendElement(current);
} }