зеркало из https://github.com/mozilla/pjs.git
fix warnings
This commit is contained in:
Родитель
24f3698d0b
Коммит
fd7bd2b342
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
/* -*- 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
|
* The contents of this file are subject to the Netscape Public License
|
||||||
|
@ -397,6 +396,10 @@ nsresult nsPrefWindow::InitializeOneWidget(
|
||||||
NS_RELEASE(specVal);
|
NS_RELEASE(specVal);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case eNoType:
|
||||||
|
{
|
||||||
|
NS_ASSERTION(0, "eNoType not handled");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
} // nsPrefWindow::InitializeOneWidget
|
} // nsPrefWindow::InitializeOneWidget
|
||||||
|
@ -551,6 +554,10 @@ nsresult nsPrefWindow::FinalizeOneWidget(
|
||||||
NS_RELEASE(specValue);
|
NS_RELEASE(specValue);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case eNoType:
|
||||||
|
{
|
||||||
|
NS_ASSERTION(0, "eNoType not handled");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// if (inWidgetType == "checkbox" || inWidgetType = "radio")
|
// if (inWidgetType == "checkbox" || inWidgetType = "radio")
|
||||||
// {
|
// {
|
||||||
|
|
|
@ -89,7 +89,6 @@ nsresult nsPrefWindowFactory::CreateInstance(
|
||||||
{
|
{
|
||||||
if (aResult == nsnull)
|
if (aResult == nsnull)
|
||||||
return NS_ERROR_NULL_POINTER;
|
return NS_ERROR_NULL_POINTER;
|
||||||
nsresult rv = NS_OK;
|
|
||||||
*aResult = nsnull;
|
*aResult = nsnull;
|
||||||
|
|
||||||
// if (!mClassID.Equals(nsPrefWindow::GetCID()))
|
// if (!mClassID.Equals(nsPrefWindow::GetCID()))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче