This MUST be fixed in some other way. This is a temporary fix for the HP build bustage that Warren okayed as this code isn't in use elsewhere. This is just commenting out the bad code, not fixing it.

This commit is contained in:
bruce%cybersight.com 1999-05-07 08:08:21 +00:00
parent 065386bc5d
commit ff0c2c46f4
2 changed files with 8 additions and 2 deletions

View File

@ -56,7 +56,10 @@ nsVariant::~nsVariant()
{
switch (mType) {
case nsVariantType_voidPtr:
delete (void *)mValue;
/* XXX: Per comments from Warren, commenting this out.
This code isn't done (or used), and is a violation
of ANSI C++ to boot. -- Bruce */
/* delete (void *)mValue; */
break;
case nsVariantType_charPtr:
nsCRT::free(mValue.mUnion._charPtr);

View File

@ -56,7 +56,10 @@ nsVariant::~nsVariant()
{
switch (mType) {
case nsVariantType_voidPtr:
delete (void *)mValue;
/* XXX: Per comments from Warren, commenting this out.
This code isn't done (or used), and is a violation
of ANSI C++ to boot. -- Bruce */
/* delete (void *)mValue; */
break;
case nsVariantType_charPtr:
nsCRT::free(mValue.mUnion._charPtr);