Closed Bug 782605 Opened 12 years ago Closed 12 years ago

Make nsNPAPIPluginInstance::SetCached infallible

Categories

(Core Graveyard :: Plug-ins, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla17

People

(Reporter: ayg, Assigned: ayg)

References

Details

Attachments

(1 file)

Currently it purports to return nsresult, but always returns NS_OK.  This is a type error in _setvalue() in nsNPAPIPlugin.cpp, since it ostensibly returns NPError but in one place returns the result of SetCached().  So let's just make it officially infallible so it's not an issue.
Attached patch PatchSplinter Review
(This is the only caller.)
Attachment #651704 - Flags: review?(roc)
https://hg.mozilla.org/mozilla-central/rev/66ae8a550cfc
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: