From a93c388cbf133a4fab33d83de490a7a7efd01de7 Mon Sep 17 00:00:00 2001 From: "jdunn%netscape.com" Date: Sat, 21 Aug 1999 00:48:02 +0000 Subject: [PATCH] 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. --- mailnews/db/msgdb/src/nsDBFolderInfo.cpp | 2 +- mailnews/db/msgdb/src/nsMsgHdr.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mailnews/db/msgdb/src/nsDBFolderInfo.cpp b/mailnews/db/msgdb/src/nsDBFolderInfo.cpp index 34b48cc65ed..c03543a94e5 100644 --- a/mailnews/db/msgdb/src/nsDBFolderInfo.cpp +++ b/mailnews/db/msgdb/src/nsDBFolderInfo.cpp @@ -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 diff --git a/mailnews/db/msgdb/src/nsMsgHdr.cpp b/mailnews/db/msgdb/src/nsMsgHdr.cpp index 41a0e066fc5..cb13e968473 100644 --- a/mailnews/db/msgdb/src/nsMsgHdr.cpp +++ b/mailnews/db/msgdb/src/nsMsgHdr.cpp @@ -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; }