From ee959ee62f29e34da1ea3971ebbe04e9d47dcf7e Mon Sep 17 00:00:00 2001 From: "warren%netscape.com" Date: Thu, 10 Aug 2000 07:05:13 +0000 Subject: [PATCH] Fixed warnings. git-svn-id: svn://10.0.0.236/trunk@75986 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/ds/nsHashtable.cpp | 4 ++-- mozilla/xpcom/ds/nsHashtable.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mozilla/xpcom/ds/nsHashtable.cpp b/mozilla/xpcom/ds/nsHashtable.cpp index f6683746760..b8ad8d422a3 100644 --- a/mozilla/xpcom/ds/nsHashtable.cpp +++ b/mozilla/xpcom/ds/nsHashtable.cpp @@ -382,7 +382,7 @@ nsCStringKey::nsCStringKey(const nsCString& str) MOZ_COUNT_CTOR(nsCStringKey); } -nsCStringKey::nsCStringKey(const char* str, PRUint32 strLen, PRBool ownsStr) +nsCStringKey::nsCStringKey(const char* str, PRInt32 strLen, PRBool ownsStr) : mStr((char*)str), mStrLen(strLen), mOwnsStr(ownsStr) { NS_ASSERTION(mStr, "null string key"); @@ -441,7 +441,7 @@ nsStringKey::nsStringKey(const nsString& str) MOZ_COUNT_CTOR(nsStringKey); } -nsStringKey::nsStringKey(const PRUnichar* str, PRUint32 strLen, PRBool ownsStr) +nsStringKey::nsStringKey(const PRUnichar* str, PRInt32 strLen, PRBool ownsStr) : mStr((PRUnichar*)str), mStrLen(strLen), mOwnsStr(ownsStr) { NS_ASSERTION(mStr, "null string key"); diff --git a/mozilla/xpcom/ds/nsHashtable.h b/mozilla/xpcom/ds/nsHashtable.h index b897bf1e3df..7bd8a872fa3 100644 --- a/mozilla/xpcom/ds/nsHashtable.h +++ b/mozilla/xpcom/ds/nsHashtable.h @@ -60,7 +60,7 @@ public: VoidKey, IDKey, CStringKey, - StringKey, + StringKey }; nsHashKeyType GetKeyType() const { return mKeyType; } protected: @@ -270,7 +270,7 @@ public: // If strLen is not passed, and defaults to -1, the assumption here is that str // does not contain embedded nulls, i.e. nsCRT::strlen will be used to determine the // length. If ownsString is true, destroying the string key will destroy str: - nsCStringKey(const char* str, PRUint32 strLen = -1, PRBool ownsStr = PR_FALSE); + nsCStringKey(const char* str, PRInt32 strLen = -1, PRBool ownsStr = PR_FALSE); nsCStringKey(const nsCString& str); ~nsCStringKey(void); @@ -294,7 +294,7 @@ public: // If strLen is not passed, and defaults to -1, the assumption here is that str // does not contain embedded nulls, i.e. nsCRT::strlen will be used to determine the // length. If ownsString is true, destroying the string key will destroy str: - nsStringKey(const PRUnichar* str, PRUint32 strLen = -1, PRBool ownsStr = PR_FALSE); + nsStringKey(const PRUnichar* str, PRInt32 strLen = -1, PRBool ownsStr = PR_FALSE); nsStringKey(const nsString& str); ~nsStringKey(void);