зеркало из https://github.com/mozilla/pjs.git
Bug 299628, Compile warnings in nsXFormsModelElement.cpp and nsXFormsSchemaValidator.cpp, p=allan, r=doronr+me, a=mkaply, NPOTB
This commit is contained in:
Родитель
9fc0b1efca
Коммит
91375a12fa
|
@ -1015,7 +1015,7 @@ nsXFormsModelElement::FindInstanceElement(const nsAString &aID,
|
|||
if (instCount) {
|
||||
nsCOMPtr<nsIDOMElement> element;
|
||||
nsAutoString id;
|
||||
for (int i = 0; i < instCount; ++i) {
|
||||
for (PRUint32 i = 0; i < instCount; ++i) {
|
||||
nsIInstanceElementPrivate* instEle = mInstanceList.ObjectAt(i);
|
||||
instEle->GetElement(getter_AddRefs(element));
|
||||
|
||||
|
@ -1276,7 +1276,7 @@ nsXFormsModelElement::BackupOrRestoreInstanceData(PRBool restore)
|
|||
|
||||
PRUint32 instCount = mInstanceList.Count();
|
||||
if (instCount) {
|
||||
for (int i = 0; i < instCount; ++i) {
|
||||
for (PRUint32 i = 0; i < instCount; ++i) {
|
||||
nsIInstanceElementPrivate *instance = mInstanceList.ObjectAt(i);
|
||||
|
||||
// Don't know what to do with error if we get one.
|
||||
|
|
|
@ -116,7 +116,6 @@ nsXFormsSchemaValidator::GetType(const nsAString & aType,
|
|||
{
|
||||
NS_ENSURE_TRUE(mSchemaValidator, PR_FALSE);
|
||||
|
||||
PRBool success = PR_FALSE;
|
||||
nsresult rv = mSchemaValidator->GetType(aType, aNamespace, aSchemaType);
|
||||
|
||||
return NS_SUCCEEDED(rv);
|
||||
|
|
Загрузка…
Ссылка в новой задаче