зеркало из https://github.com/mozilla/gecko-dev.git
Change unicode assertion to a warning
This commit is contained in:
Родитель
6fb1abf7a9
Коммит
fc592dafd3
|
@ -473,9 +473,9 @@ void nsHTMLToTXTSinkStream::EnsureBufferSize(PRInt32 aNewSize)
|
|||
|
||||
void nsHTMLToTXTSinkStream::EncodeToBuffer(const nsString& aSrc)
|
||||
{
|
||||
NS_ASSERTION(mUnicodeEncoder != nsnull,"The unicode encoder needs to be initialized");
|
||||
if (mUnicodeEncoder == nsnull)
|
||||
{
|
||||
NS_WARNING("The unicode encoder needs to be initialized");
|
||||
char* str = aSrc.ToNewCString();
|
||||
EnsureBufferSize(aSrc.Length()+1);
|
||||
strcpy(mBuffer, str);
|
||||
|
|
|
@ -473,9 +473,9 @@ void nsHTMLToTXTSinkStream::EnsureBufferSize(PRInt32 aNewSize)
|
|||
|
||||
void nsHTMLToTXTSinkStream::EncodeToBuffer(const nsString& aSrc)
|
||||
{
|
||||
NS_ASSERTION(mUnicodeEncoder != nsnull,"The unicode encoder needs to be initialized");
|
||||
if (mUnicodeEncoder == nsnull)
|
||||
{
|
||||
NS_WARNING("The unicode encoder needs to be initialized");
|
||||
char* str = aSrc.ToNewCString();
|
||||
EnsureBufferSize(aSrc.Length()+1);
|
||||
strcpy(mBuffer, str);
|
||||
|
|
Загрузка…
Ссылка в новой задаче