diff options
author | Matt A. Tobin <email@mattatobin.com> | 2022-04-09 16:53:35 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-04-09 16:53:35 -0500 |
commit | 853befa9d5604186c6c452afe07a37d372700e26 (patch) | |
tree | 29493ecd6a4dd21ff966c29f4fc20a396ef9d715 /mailnews/base | |
parent | 645c946aa77a55b259bd98de78a6a9d9c342ed94 (diff) | |
download | aura-central-853befa9d5604186c6c452afe07a37d372700e26.tar.gz |
Revert "Issue %3057 - Part 9: Adjust all callsites for no longer using GetNativePath"
This reverts commit 097fa969802f76530384926e8ef1f56777be3783.
Diffstat (limited to 'mailnews/base')
-rw-r--r-- | mailnews/base/src/nsMessenger.cpp | 12 | ||||
-rw-r--r-- | mailnews/base/src/nsMsgFolderCache.cpp | 4 |
2 files changed, 0 insertions, 16 deletions
diff --git a/mailnews/base/src/nsMessenger.cpp b/mailnews/base/src/nsMessenger.cpp index 99a1c83d9..8719530f7 100644 --- a/mailnews/base/src/nsMessenger.cpp +++ b/mailnews/base/src/nsMessenger.cpp @@ -598,11 +598,7 @@ nsMessenger::DetachAttachmentsWOPrompts(nsIFile* aDestFolder, NS_ENSURE_SUCCESS(rv, rv); nsAutoCString path; -#ifdef XP_WIN - rv = attachmentDestination->GetPersistentDescriptor(path); -#else rv = attachmentDestination->GetNativePath(path); -#endif NS_ENSURE_SUCCESS(rv, rv); nsAutoString unescapedFileName; @@ -858,11 +854,7 @@ nsMessenger::SaveOneAttachment(const char * aContentType, const char * aURL, SetLastSaveDirectory(localFile); nsCString dirName; -#ifdef XP_WIN - rv = localFile->GetPersistentDescriptor(dirName); -#else rv = localFile->GetNativePath(dirName); -#endif NS_ENSURE_SUCCESS(rv, rv); nsSaveAllAttachmentsState *saveState = @@ -929,11 +921,7 @@ nsMessenger::SaveAllAttachments(uint32_t count, nsCString dirName; nsSaveAllAttachmentsState *saveState = nullptr; -#ifdef XP_WIN - rv = localFile->GetPersistentDescriptor(dirName); -#else rv = localFile->GetNativePath(dirName); -#endif NS_ENSURE_SUCCESS(rv, rv); saveState = new nsSaveAllAttachmentsState(count, diff --git a/mailnews/base/src/nsMsgFolderCache.cpp b/mailnews/base/src/nsMsgFolderCache.cpp index caab422aa..9510a6e3d 100644 --- a/mailnews/base/src/nsMsgFolderCache.cpp +++ b/mailnews/base/src/nsMsgFolderCache.cpp @@ -236,11 +236,7 @@ NS_IMETHODIMP nsMsgFolderCache::Init(nsIFile *aFile) aFile->Exists(&exists); nsAutoCString dbPath; -#ifdef XP_WIN - aFile->GetPersistentDescriptor(dbPath); -#else aFile->GetNativePath(dbPath); -#endif // ### evil cast until MDB supports file streams. nsresult rv = OpenMDB(dbPath, exists); // if this fails and panacea.dat exists, try blowing away the db and recreating it |