зеркало из https://github.com/mozilla/pjs.git
fix nsFileSpec casting
This commit is contained in:
Родитель
6a16062360
Коммит
11cf39af7a
|
@ -196,7 +196,8 @@ nsMsgLocalMailFolder::GetSubFolders(nsIEnumerator* *result)
|
|||
// unfortunately we can't just say:
|
||||
// path += sep;
|
||||
// here because of the way nsFileSpec concatenates
|
||||
nsAutoString str = path;
|
||||
const char *chpath = path;
|
||||
nsAutoString str(chpath);
|
||||
str += sep;
|
||||
path = str;
|
||||
}
|
||||
|
@ -875,7 +876,8 @@ NS_IMETHODIMP nsMsgLocalMailFolder::GetRememberedPassword(char ** password)
|
|||
|
||||
NS_IMETHODIMP nsMsgLocalMailFolder::GetPath(nsFileSpec& aPathName)
|
||||
{
|
||||
if (mPath == nsnull) {
|
||||
nsFileSpec nopath("");
|
||||
if (mPath == nopath) {
|
||||
nsresult rv = nsURI2Path(kMailboxRootURI, mURI, mPath);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
|
|
|
@ -314,7 +314,7 @@ PRInt32 nsMailboxProtocol::SetupReadMessage()
|
|||
{
|
||||
nsMailDatabase * mailDb = nsnull;
|
||||
nsIMessage * msgHdr = nsnull;
|
||||
nsMailDatabase::Open((const nsFileSpec) *dbFileSpec, PR_FALSE, &mailDb);
|
||||
nsMailDatabase::Open((nsFileSpec&) *dbFileSpec, PR_FALSE, &mailDb);
|
||||
if (mailDb) // did we get a db back?
|
||||
{
|
||||
mailDb->GetMsgHdrForKey(messageKey, &msgHdr);
|
||||
|
|
Загрузка…
Ссылка в новой задаче