Closed Bug 74792 Opened 24 years ago Closed 24 years ago

helper to make code that asks for proxies more readable

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dmosedale, Assigned: dmosedale)

References

Details

Attachments

(1 file)

It's a pain to have to get the proxy object manager yourself every time you want a proxy object in a different function. Since most users of proxies already have a link-time dependency on libxpcom, I'm attaching a patch that exposes an NS_GetProxyForObject.
Blocks: 70933
- * Contributor(s): + * Contributor(s): Doug Turner <dougt@netscape.com> (Original Author) + * Dan Mosedale <dmose@netscape.com> Isn't the MPL term of art "Original Contributor"? I've seen others call out the O.C. first, followed by a possibly-empty Contributor(s): list. Why not put each Contributor on his own line? I see yet more impl. in an IDL file, wahhh. Is there no implementation-specific header file that ties the interface to the one true impl.? OTOH, if it's truly the one impl (there can be only one), why am I whining. Address these nits, and r=brendan@mozilla.org. /be
Status: NEW → ASSIGNED
> Isn't the MPL term of art "Original Contributor"? I've seen others call out > the O.C. first, followed by a possibly-empty Contributor(s): list. I've seen Original Author format used far more often, and since it's part of the Contributors list, it still conveys both contribution and authorship, which seems clearer. > Why not put each Contributor on his own line? Huh? They are... in my patch there is exactly one Contributor per line. > I see yet more impl. in an IDL file, wahhh. Is there no > implementation-specific header file that ties the interface to the one true > impl.? OTOH, if it's truly the one impl (there can be only one), why am I > whining. That's not the implementation in the IDL file; it's the only possible C++ forward declaration, given the IDL signature for the function being wrapped. The wrapper implementation is in the second file patched, nsProxyEventManager.cpp.
Filed bug 74792 on Orig Contrib vs. Orig Author stuff. Brendan sez that I should now just find an sr= and checkin.
Er, bug 75813, I meant.
Keywords: patch, review
sr=waterson
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Keywords: review
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: