зеркало из https://github.com/mozilla/gecko-dev.git
Bug 555673 FramePropertyTable.cpp failed to compile with Sun Studio on Solaris r=roc
This commit is contained in:
Родитель
dfeb213e0d
Коммит
73dbd6bb74
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче