fixing code that relied on implicit string construction
This commit is contained in:
Родитель
1e6c6f157d
Коммит
8bde0b933b
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче