fix warnings

git-svn-id: svn://10.0.0.236/trunk@37677 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com
1999-07-01 08:07:54 +00:00
parent 3d4646654f
commit 02fa3bd6bd
2 changed files with 8 additions and 2 deletions

View File

@@ -1,4 +1,3 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
@@ -397,6 +396,10 @@ nsresult nsPrefWindow::InitializeOneWidget(
NS_RELEASE(specVal);
break;
}
case eNoType:
{
NS_ASSERTION(0, "eNoType not handled");
}
}
return NS_OK;
} // nsPrefWindow::InitializeOneWidget
@@ -551,6 +554,10 @@ nsresult nsPrefWindow::FinalizeOneWidget(
NS_RELEASE(specValue);
break;
}
case eNoType:
{
NS_ASSERTION(0, "eNoType not handled");
}
}
// if (inWidgetType == "checkbox" || inWidgetType = "radio")
// {

View File

@@ -89,7 +89,6 @@ nsresult nsPrefWindowFactory::CreateInstance(
{
if (aResult == nsnull)
return NS_ERROR_NULL_POINTER;
nsresult rv = NS_OK;
*aResult = nsnull;
// if (!mClassID.Equals(nsPrefWindow::GetCID()))