relanding bug 410250.

git-svn-id: svn://10.0.0.236/trunk@242890 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dwitte%stanford.edu
2008-01-11 09:13:06 +00:00
parent 2727299255
commit 4c74c22a8d
20 changed files with 181 additions and 205 deletions

View File

@@ -416,10 +416,8 @@ public:
static const char kIIDDecl2[] = " =\n \"";
static const char kIIDDecl3[] = "\";\n\n";
nsIID* iid = nsnull;
aIInfo->GetInterfaceIID(&iid);
if (!iid)
return NS_ERROR_OUT_OF_MEMORY;
nsIID* iid;
aIInfo->GetIIDShared(&iid);
// create iid field name
nsCAutoString iid_name;
@@ -435,9 +433,8 @@ public:
ToUpperCase(iid_name);
// get iid string
char* iid_str = iid->ToString();
if (!iid_str)
return NS_ERROR_OUT_OF_MEMORY;
char iid_str[NSID_LENGTH];
iid->ToProvidedString(iid_str);
PRUint32 count;
nsresult rv = out->Write(kIIDDecl1, sizeof(kIIDDecl1) - 1, &count);
@@ -452,8 +449,6 @@ public:
NS_ENSURE_SUCCESS(rv, rv);
// cleanup
PR_Free(iid_str);
nsMemory::Free(iid);
return NS_OK;
}