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.

git-svn-id: svn://10.0.0.236/trunk@30686 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bruce%cybersight.com
1999-05-07 08:08:21 +00:00
parent e0a38cc61a
commit 0669aa2ebf
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);