Closed Bug 82000 Opened 23 years ago Closed 23 years ago

nsCategoryManager::DeleteCategoryEntry() has an unused out param

Categories

(Core :: XPCOM, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla0.9.2

People

(Reporter: jud, Assigned: jud)

References

()

Details

Attachments

(2 files)

_retval is never used and it forces callers to pass *something* in which leads
to un-necessary stack allocations.
Target Milestone: --- → mozilla0.9.2
looking for r/sr.
changes look good to me. r=chak
I presume you've checked the Commercial tree as well. If so, sr=vidur.
whoops. I had checked the ns tree (made the following modification to the single
callsite), but forgot to post the patch.

Index: nsActivation.cpp
===================================================================
RCS file: /m/src/ns/profile/src/nsActivation.cpp,v
retrieving revision 1.24
diff -r1.24 nsActivation.cpp
908,910c908,909
<     nsXPIDLCString prevEntry;
<     rv = catman->DeleteCategoryEntry(NS_PROFILE_STARTUP_CATEGORY,
NS_ACTIVATION_CONTRACTID, PR_TRUE,
<                                      getter_Copies(prevEntry));
---
>     rv = catman->DeleteCategoryEntry(NS_PROFILE_STARTUP_CATEGORY,
NS_ACTIVATION_CONTRACTID,
>                                      PR_TRUE);
vidur has sr'd the above patch.
Blocks: 83989
a=tor
Blocks: 84162
fix is in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: