зеркало из https://github.com/mozilla/gecko-dev.git
Fix nsCString::AppendWithConversion() to work.
This commit is contained in:
Родитель
1f5d36b304
Коммит
179f993e8b
|
@ -1082,7 +1082,10 @@ void nsCString::AppendWithConversion( const PRUnichar* aBuffer, PRInt32 aLength
|
|||
aLength = nsCharTraits<PRUnichar>::length(aBuffer);
|
||||
|
||||
if ( aLength > 0 )
|
||||
StrAppend(*this, temp, 0, aLength);
|
||||
{
|
||||
temp.mLength = aLength;
|
||||
StrAppend(*this, temp, 0, aLength);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1082,7 +1082,10 @@ void nsCString::AppendWithConversion( const PRUnichar* aBuffer, PRInt32 aLength
|
|||
aLength = nsCharTraits<PRUnichar>::length(aBuffer);
|
||||
|
||||
if ( aLength > 0 )
|
||||
StrAppend(*this, temp, 0, aLength);
|
||||
{
|
||||
temp.mLength = aLength;
|
||||
StrAppend(*this, temp, 0, aLength);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1082,7 +1082,10 @@ void nsCString::AppendWithConversion( const PRUnichar* aBuffer, PRInt32 aLength
|
|||
aLength = nsCharTraits<PRUnichar>::length(aBuffer);
|
||||
|
||||
if ( aLength > 0 )
|
||||
StrAppend(*this, temp, 0, aLength);
|
||||
{
|
||||
temp.mLength = aLength;
|
||||
StrAppend(*this, temp, 0, aLength);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче