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:
parent
cebb07fc5e
commit
520bca76f7
@ -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)) {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user