fixing code that relied on implicit string construction

git-svn-id: svn://10.0.0.236/trunk@78002 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%mozilla.org 2000-09-02 05:30:35 +00:00
parent cebb07fc5e
commit 520bca76f7
3 changed files with 3 additions and 3 deletions

View File

@ -501,7 +501,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL, char** aResult)
rv = GetBaseURL(package, provider, finalURL);
#ifdef DEBUG
if (NS_FAILED(rv)) {
nsCAutoString msg = "chrome: failed to get base url";
nsCAutoString msg("chrome: failed to get base url");
nsXPIDLCString url;
rv = aChromeURL->GetSpec(getter_Copies(url));
if (NS_SUCCEEDED(rv)) {

View File

@ -2171,7 +2171,7 @@ wallet_GetPrefills(
if (FieldToValue(field, schema, value, itemList, index) == 0) {
if (value.IsEmpty() && nsnull != itemList) {
/* pick first of a set of synonymous values */
nsAutoString encryptedValue = ((wallet_Sublist *)itemList->ElementAt(0))->item;
nsAutoString encryptedValue( ((wallet_Sublist *)itemList->ElementAt(0))->item );
if (NS_FAILED(Wallet_Decrypt(encryptedValue, value))) {
NS_RELEASE(inputElement);
return -1;

View File

@ -501,7 +501,7 @@ nsChromeRegistry::ConvertChromeURL(nsIURI* aChromeURL, char** aResult)
rv = GetBaseURL(package, provider, finalURL);
#ifdef DEBUG
if (NS_FAILED(rv)) {
nsCAutoString msg = "chrome: failed to get base url";
nsCAutoString msg("chrome: failed to get base url");
nsXPIDLCString url;
rv = aChromeURL->GetSpec(getter_Copies(url));
if (NS_SUCCEEDED(rv)) {