зеркало из https://github.com/mozilla/pjs.git
Fix HP-UX build bustage. You may NOT delete a void*. This is illegal in ANSI C++.
This commit is contained in:
Родитель
3c0104c081
Коммит
a44807c99e
|
@ -56,7 +56,7 @@ nsVariant::~nsVariant()
|
|||
{
|
||||
switch (mType) {
|
||||
case nsVariantType_voidPtr:
|
||||
delete (void*)mValue;
|
||||
delete mValue;
|
||||
break;
|
||||
case nsVariantType_charPtr:
|
||||
nsCRT::free(mValue.mUnion._charPtr);
|
||||
|
|
|
@ -56,7 +56,7 @@ nsVariant::~nsVariant()
|
|||
{
|
||||
switch (mType) {
|
||||
case nsVariantType_voidPtr:
|
||||
delete (void*)mValue;
|
||||
delete mValue;
|
||||
break;
|
||||
case nsVariantType_charPtr:
|
||||
nsCRT::free(mValue.mUnion._charPtr);
|
||||
|
|
Загрузка…
Ссылка в новой задаче