checking in updates to fix xmlterm build (not part of regular build yet)

git-svn-id: svn://10.0.0.236/trunk@60277 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
leaf%mozilla.org
2000-02-10 04:23:06 +00:00
parent 5bc668927e
commit 1a7ea52394
3 changed files with 11 additions and 3 deletions

View File

@@ -235,6 +235,8 @@ NS_IMETHODIMP mozLineTerm::GetSecurePrincipal(nsIDOMDocument *domDoc,
{
XMLT_LOG(mozLineTerm::GetSecurePrincipal,30,("\n"));
nsresult result;
if (!aPrincipalStr)
return NS_ERROR_FAILURE;
@@ -245,7 +247,10 @@ NS_IMETHODIMP mozLineTerm::GetSecurePrincipal(nsIDOMDocument *domDoc,
if (!doc)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIPrincipal> principal=dont_AddRef(doc->GetDocumentPrincipal());
nsCOMPtr<nsIPrincipal> principal;
result = doc->GetPrincipal(getter_AddRefs(principal));
if (NS_FAILED(result))
return result;
#if 0 // Temporarily comented out, because ToString is not immplemented
result = principal->ToString(aPrincipalStr);