From b1a59be0ad3f1630534d90ae0bbbb79d2af23717 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Sat, 22 Mar 2003 19:47:45 +0000 Subject: [PATCH] Bustage fix from . b=191380 git-svn-id: svn://10.0.0.236/trunk@140080 18797224-902f-48f8-a5cc-f745e15eee43 --- .../camino/PreferencePanes/Privacy/PrivacyPane.mm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/camino/PreferencePanes/Privacy/PrivacyPane.mm b/mozilla/camino/PreferencePanes/Privacy/PrivacyPane.mm index ef2f44f61df..af539fb6896 100644 --- a/mozilla/camino/PreferencePanes/Privacy/PrivacyPane.mm +++ b/mozilla/camino/PreferencePanes/Privacy/PrivacyPane.mm @@ -197,8 +197,8 @@ const int kDisableAllCookies = 2; nsCOMPtr rowItem = dont_AddRef(mCachedPermissions->ElementAt(row)); nsCOMPtr perm ( do_QueryInterface(rowItem) ); if ( perm ) { - nsXPIDLCString host; - perm->GetHost(getter_Copies(host)); + nsCAutoString host; + perm->GetHost(host); mManager->Remove(host, 0); // could this api _be_ any worse? Come on! mCachedPermissions->RemoveElementAt(row); @@ -230,15 +230,15 @@ const int kDisableAllCookies = 2; if ( perm ) { if ( [[aTableColumn identifier] isEqualToString:@"Website"] ) { // website url column - nsXPIDLCString host; - perm->GetHost(getter_Copies(host)); + nsCAutoString host; + perm->GetHost(host); retVal = [NSString stringWithCString:host]; } else { // allow/deny column - PRBool capability = PR_FALSE; // false = deny, true = accept; + PRUInt32 capability = PR_FALSE; perm->GetCapability(&capability); - if ( capability ) + if ( capability == nsIPermissionManager::ALLOW_ACTION) retVal = [self getLocalizedString:@"Allow"]; else retVal = [self getLocalizedString:@"Deny"];