Bug 610611 - redundant GetMessageKey() call; r=bienvenu

This commit is contained in:
Boying Lu 2010-11-18 13:37:55 +00:00
Родитель db25e015db
Коммит fce5211de5
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -204,14 +204,13 @@ NS_IMETHODIMP nsMsgThread::GetNumUnreadChildren (PRUint32 *result)
nsresult nsMsgThread::RerootThread(nsIMsgDBHdr *newParentOfOldRoot, nsIMsgDBHdr *oldRoot, nsIDBChangeAnnouncer *announcer)
{
nsresult rv = NS_OK;
mdb_pos outPos;
nsMsgKey newHdrAncestor;
nsCOMPtr <nsIMsgDBHdr> ancestorHdr = newParentOfOldRoot;
nsMsgKey newRoot;
newParentOfOldRoot->GetMessageKey(&newRoot);
mdb_pos outPos;
nsMsgKey newHdrAncestor;
ancestorHdr->GetMessageKey(&newRoot);
nsresult rv = NS_OK;
// loop trying to find the oldest ancestor of this msg
// that is a parent of the root. The oldest ancestor will
// become the root of the thread.