зеркало из https://github.com/mozilla/pjs.git
add new line to the end of the file. use nsAutoCString instead of ToNewCString.
This commit is contained in:
Родитель
632edd2185
Коммит
6a55275f06
|
@ -195,15 +195,12 @@ nsresult nsMsgMessageDataSource::GetSenderName(nsAutoString& sender, nsAutoStrin
|
|||
if(mHeaderParser)
|
||||
{
|
||||
char *name;
|
||||
char *senderStr = sender.ToNewCString();
|
||||
if(NS_SUCCEEDED(rv = mHeaderParser->ExtractHeaderAddressName (nsnull, senderStr, &name)))
|
||||
if(NS_SUCCEEDED(rv = mHeaderParser->ExtractHeaderAddressName (nsnull, nsAutoCString(sender), &name)))
|
||||
{
|
||||
*senderUserName = name;
|
||||
}
|
||||
if(name)
|
||||
PL_strfree(name);
|
||||
if(senderStr)
|
||||
delete[] senderStr;
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
@ -614,4 +611,6 @@ nsresult nsMsgMessageDataSource::NotifyPropertyChanged(nsIRDFResource *resource,
|
|||
NotifyObservers(resource, propertyResource, oldValueNode, PR_FALSE);
|
||||
NotifyObservers(resource, propertyResource, newValueNode, PR_TRUE);
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче