Fixed warnings.
git-svn-id: svn://10.0.0.236/trunk@75986 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user