From 13372716ec2312c6f34e2ea5d025feadd16a1bca Mon Sep 17 00:00:00 2001 From: "dp%netscape.com" Date: Sun, 21 Mar 1999 19:26:32 +0000 Subject: [PATCH] Patch for unsigned vs signed warnings. Thanks to --- modules/libreg/xpcom/nsRegistry.cpp | 2 +- xpcom/components/nsRegistry.cpp | 2 +- xpcom/ds/nsHashtable.cpp | 2 +- xpcom/ds/nsSupportsArray.cpp | 2 +- xpcom/src/nsHashtable.cpp | 2 +- xpcom/src/nsRegistry.cpp | 2 +- xpcom/src/nsSupportsArray.cpp | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/libreg/xpcom/nsRegistry.cpp b/modules/libreg/xpcom/nsRegistry.cpp index ee6533ebcb2f..423c24235776 100644 --- a/modules/libreg/xpcom/nsRegistry.cpp +++ b/modules/libreg/xpcom/nsRegistry.cpp @@ -66,7 +66,7 @@ struct nsRegistry : public nsIRegistry { // ctor/dtor nsRegistry(); - ~nsRegistry(); + virtual ~nsRegistry(); protected: HREG mReg; // Registry handle. diff --git a/xpcom/components/nsRegistry.cpp b/xpcom/components/nsRegistry.cpp index ee6533ebcb2f..423c24235776 100644 --- a/xpcom/components/nsRegistry.cpp +++ b/xpcom/components/nsRegistry.cpp @@ -66,7 +66,7 @@ struct nsRegistry : public nsIRegistry { // ctor/dtor nsRegistry(); - ~nsRegistry(); + virtual ~nsRegistry(); protected: HREG mReg; // Registry handle. diff --git a/xpcom/ds/nsHashtable.cpp b/xpcom/ds/nsHashtable.cpp index 06038d506ded..d1ab44efa0ef 100644 --- a/xpcom/ds/nsHashtable.cpp +++ b/xpcom/ds/nsHashtable.cpp @@ -186,7 +186,7 @@ void nsHashtable::Reset() { nsCStringKey::nsCStringKey(const char* str) : mStr(mBuf) { - PRInt32 len = PL_strlen(str); + PRUint32 len = PL_strlen(str); if (len >= sizeof(mBuf)) { mStr = PL_strdup(str); NS_ASSERTION(mStr, "out of memory"); diff --git a/xpcom/ds/nsSupportsArray.cpp b/xpcom/ds/nsSupportsArray.cpp index f420ec1966b9..72f4eb805fa0 100644 --- a/xpcom/ds/nsSupportsArray.cpp +++ b/xpcom/ds/nsSupportsArray.cpp @@ -58,7 +58,7 @@ nsSupportsArray::operator=(const nsISupportsArray& aOther) { PRUint32 otherCount = aOther.Count(); - if (otherCount > (PRInt32)mArraySize) { + if (otherCount > mArraySize) { DeleteArray(); mArraySize = otherCount; mArray = new nsISupports*[mArraySize]; diff --git a/xpcom/src/nsHashtable.cpp b/xpcom/src/nsHashtable.cpp index 06038d506ded..d1ab44efa0ef 100644 --- a/xpcom/src/nsHashtable.cpp +++ b/xpcom/src/nsHashtable.cpp @@ -186,7 +186,7 @@ void nsHashtable::Reset() { nsCStringKey::nsCStringKey(const char* str) : mStr(mBuf) { - PRInt32 len = PL_strlen(str); + PRUint32 len = PL_strlen(str); if (len >= sizeof(mBuf)) { mStr = PL_strdup(str); NS_ASSERTION(mStr, "out of memory"); diff --git a/xpcom/src/nsRegistry.cpp b/xpcom/src/nsRegistry.cpp index ee6533ebcb2f..423c24235776 100644 --- a/xpcom/src/nsRegistry.cpp +++ b/xpcom/src/nsRegistry.cpp @@ -66,7 +66,7 @@ struct nsRegistry : public nsIRegistry { // ctor/dtor nsRegistry(); - ~nsRegistry(); + virtual ~nsRegistry(); protected: HREG mReg; // Registry handle. diff --git a/xpcom/src/nsSupportsArray.cpp b/xpcom/src/nsSupportsArray.cpp index f420ec1966b9..72f4eb805fa0 100644 --- a/xpcom/src/nsSupportsArray.cpp +++ b/xpcom/src/nsSupportsArray.cpp @@ -58,7 +58,7 @@ nsSupportsArray::operator=(const nsISupportsArray& aOther) { PRUint32 otherCount = aOther.Count(); - if (otherCount > (PRInt32)mArraySize) { + if (otherCount > mArraySize) { DeleteArray(); mArraySize = otherCount; mArray = new nsISupports*[mArraySize];