mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 1135081 - Fix typo in nsTString::AssertValidDepedentString. r=froydnj
This commit is contained in:
parent
c90cdd2eef
commit
795381b915
@ -32,13 +32,13 @@ public:
|
||||
: string_type(const_cast<char_type*>(aStart),
|
||||
uint32_t(aEnd - aStart), F_TERMINATED)
|
||||
{
|
||||
AssertValidDepedentString();
|
||||
AssertValidDependentString();
|
||||
}
|
||||
|
||||
nsTDependentString_CharT(const char_type* aData, uint32_t aLength)
|
||||
: string_type(const_cast<char_type*>(aData), aLength, F_TERMINATED)
|
||||
{
|
||||
AssertValidDepedentString();
|
||||
AssertValidDependentString();
|
||||
}
|
||||
|
||||
#if defined(CharT_is_PRUnichar) && defined(MOZ_USE_CHAR16_WRAPPER)
|
||||
@ -53,7 +53,7 @@ public:
|
||||
: string_type(const_cast<char_type*>(aData),
|
||||
uint32_t(char_traits::length(aData)), F_TERMINATED)
|
||||
{
|
||||
AssertValidDepedentString();
|
||||
AssertValidDependentString();
|
||||
}
|
||||
|
||||
#if defined(CharT_is_PRUnichar) && defined(MOZ_USE_CHAR16_WRAPPER)
|
||||
|
@ -42,6 +42,6 @@ nsTString_CharT::Rebind(const char_type* data, size_type length)
|
||||
mData = const_cast<char_type*>(data);
|
||||
mLength = length;
|
||||
SetDataFlags(F_TERMINATED);
|
||||
AssertValidDepedentString();
|
||||
AssertValidDependentString();
|
||||
}
|
||||
|
||||
|
@ -446,7 +446,7 @@ public:
|
||||
/**
|
||||
* verify restrictions for dependent strings
|
||||
*/
|
||||
void AssertValidDepedentString()
|
||||
void AssertValidDependentString()
|
||||
{
|
||||
NS_ASSERTION(mData, "nsTDependentString must wrap a non-NULL buffer");
|
||||
NS_ASSERTION(mLength != size_type(-1), "nsTDependentString has bogus length");
|
||||
|
Loading…
x
Reference in New Issue
Block a user