Closed Bug 185247 Opened 22 years ago Closed 9 years ago

HavePrivateHTMLFlavor should not return PRBool

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

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)); ... } .... }
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.4beta
Component: Editor: Composer → Editor: Core
OS: Windows XP → All
Hardware: PC → All
QA Contact: sujay → editor
Assignee: mozeditor → nobody
Status: ASSIGNED → NEW
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.