commit 136d1345a7953f89c5b4998a7544045cd9c68d51 Author: Alex Catarineu acat@torproject.org Date: Wed Oct 28 15:24:34 2020 +0100
fixup! Bug 13252: Do not store data in the app bundle
Fixes 40205: Replace occurrence of EmptyCString with 0-length _ns literal --- xpcom/io/TorFileUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xpcom/io/TorFileUtils.cpp b/xpcom/io/TorFileUtils.cpp index ce75ab1e1c07..6bd03f1f7fed 100644 --- a/xpcom/io/TorFileUtils.cpp +++ b/xpcom/io/TorFileUtils.cpp @@ -71,7 +71,7 @@ nsresult TorBrowser_GetUserDataDir(nsIFile* aExeFile, nsIFile** aFile) { // points to ~/Library/Application Support, we first create an empty // nsIFile object (no path) and then use InitWithFSRef() to set the // path. - rv = NS_NewNativeLocalFile(EmptyCString(), true, getter_AddRefs(tbDataDir)); + rv = NS_NewNativeLocalFile(""_ns, true, getter_AddRefs(tbDataDir)); NS_ENSURE_SUCCESS(rv, rv); nsCOMPtr<nsILocalFileMac> dirFileMac = do_QueryInterface(tbDataDir); if (!dirFileMac) return NS_ERROR_UNEXPECTED;
tbb-commits@lists.torproject.org