зеркало из https://github.com/mozilla/pjs.git
HP's compiler won't allow deletes of void *... so a base type is needed.
I talked this over with Bienvenu and since the code will be switched eventually to nsCString, the change is ok.
This commit is contained in:
Родитель
8228453710
Коммит
a93c388cbf
|
@ -696,7 +696,7 @@ nsresult nsDBFolderInfo::SetPropertyWithToken(mdb_token aProperty, nsString *pro
|
|||
if (m_mdbRow)
|
||||
{
|
||||
nsresult err = m_mdbRow->AddColumn(m_mdb->GetEnv(), aProperty, m_mdb->nsStringToYarn(&yarn, propertyStr));
|
||||
delete[] yarn.mYarn_Buf; // won't need this when we have nsCString
|
||||
delete[] (char *)yarn.mYarn_Buf; // won't need this when we have nsCString
|
||||
return err;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -208,7 +208,7 @@ NS_IMETHODIMP nsMsgHdr::SetProperty(const char *propertyName, nsString &property
|
|||
|
||||
yarn.mYarn_Grow = NULL;
|
||||
err = m_mdbRow->AddColumn(m_mdb->GetEnv(), property_token, m_mdb->nsStringToYarn(&yarn, &propertyStr));
|
||||
delete[] yarn.mYarn_Buf; // won't need this when we have nsCString
|
||||
delete[] (char *)yarn.mYarn_Buf; // won't need this when we have nsCString
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче