From 30b9358889e81c60ec0a1ebf9c848f8f7fdaa19e Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Sat, 2 Sep 2000 07:39:16 +0000 Subject: [PATCH] fixing code that relied on implicit string construction. r=scc --- xpinstall/src/nsRegisterItem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xpinstall/src/nsRegisterItem.cpp b/xpinstall/src/nsRegisterItem.cpp index b2d7eede4b0c..a1d3af37a063 100644 --- a/xpinstall/src/nsRegisterItem.cpp +++ b/xpinstall/src/nsRegisterItem.cpp @@ -97,9 +97,9 @@ hack_nsIFile2URL(nsIFile* file, char * *aURL) SwapSlashColon(ePath); #endif // Escape the path with the directory mask - nsCAutoString tmp = ePath; + nsCAutoString tmp(ePath); tmp.ReplaceChar(":", '|'); - nsCAutoString escPath = "file://"; + nsCAutoString escPath("file://"); escPath += tmp; // rv = nsURLEscape(ePath,nsIIOService::url_Directory + nsIIOService::url_Forced, escPath); // if (NS_SUCCEEDED(rv)) {