зеркало из https://github.com/mozilla/pjs.git
fix parent thread for top level messages,fixes delete in threaded view r=putterman 22287
This commit is contained in:
Родитель
05a3c0250e
Коммит
735d0b4851
|
@ -112,7 +112,7 @@ public:
|
|||
protected:
|
||||
nsresult SetStringColumn(const char *str, mdb_token token);
|
||||
nsresult SetUInt32Column(PRUint32 value, mdb_token token);
|
||||
nsresult GetUInt32Column(mdb_token token, PRUint32 *pvalue);
|
||||
nsresult GetUInt32Column(mdb_token token, PRUint32 *pvalue, PRUint32 defaultValue = 0);
|
||||
|
||||
// reference and threading stuff.
|
||||
const char* GetNextReference(const char *startNextRef, nsCString &reference);
|
||||
|
|
|
@ -640,7 +640,7 @@ NS_IMETHODIMP nsMsgHdr::SetThreadParent(nsMsgKey inKey)
|
|||
NS_IMETHODIMP nsMsgHdr::GetThreadParent(nsMsgKey *result)
|
||||
{
|
||||
nsresult res;
|
||||
res = GetUInt32Column(m_mdb->m_threadParentColumnToken, &m_threadParent);
|
||||
res = GetUInt32Column(m_mdb->m_threadParentColumnToken, &m_threadParent, nsMsgKey_None);
|
||||
*result = m_threadParent;
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -669,9 +669,9 @@ nsresult nsMsgHdr::SetUInt32Column(PRUint32 value, mdb_token token)
|
|||
return m_mdbRow->AddColumn(m_mdb->GetEnv(), token, nsMsgDatabase::UInt32ToYarn(&yarn, value));
|
||||
}
|
||||
|
||||
nsresult nsMsgHdr::GetUInt32Column(mdb_token token, PRUint32 *pvalue)
|
||||
nsresult nsMsgHdr::GetUInt32Column(mdb_token token, PRUint32 *pvalue, PRUint32 defaultValue)
|
||||
{
|
||||
return m_mdb->RowCellColumnToUInt32(GetMDBRow(), token, pvalue);
|
||||
return m_mdb->RowCellColumnToUInt32(GetMDBRow(), token, pvalue, defaultValue);
|
||||
}
|
||||
|
||||
// get the next <> delimited reference from nextRef and copy it into reference,
|
||||
|
|
Загрузка…
Ссылка в новой задаче