Closed
Bug 185247
Opened 22 years ago
Closed 9 years ago
HavePrivateHTMLFlavor should not return PRBool
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla1.4beta
People
(Reporter: harishd, Unassigned)
Details
IMO, nsHTMLEditor::HavePrivateHTMLFlavor should return nsresult instead of PRBool.
That is, the function should looks something like this:
nsresult
nsHTMLEditor::HavePrivateHTMLFlavor(nsIClipboard *aClipboard,
PRBool* aReturn)
{
*aReturn = PR_FALSE;
NS_ENSURE_ARG_POINTER(aClipboard);
nsCOMPtr<nsISupportsArray> flavArray;
nsresult res = NS_NewISupportsArray(getter_AddRefs(flavArray));
if (NS_FAILED(res))
return res
nsCOMPtr<nsISupportsCString> contextString(
do_CreateInstance(NS_SUPPORTS_CSTRING_CONTRACTID, &res));
if (contextString)
contextString->SetData(NS_LITERAL_CSTRING(kHTMLContext));
...
}
....
}
Updated•22 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.4beta
Updated•22 years ago
|
Component: Editor: Composer → Editor: Core
OS: Windows XP → All
Hardware: PC → All
Updated•18 years ago
|
QA Contact: sujay → editor
Updated•18 years ago
|
Assignee: mozeditor → nobody
Status: ASSIGNED → NEW
Comment 1•9 years ago
|
||
HavePrivateHTMLFlavor() now returns bool and no longer tries to return an nsresult as a PRBool.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•