Closed
Bug 675567
Opened 14 years ago
Closed 14 years ago
Fix PRBool/JSBool mixups
Categories
(Core :: XPConnect, defect)
Core
XPConnect
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: mwu, Assigned: mwu)
References
Details
(Whiteboard: [inbound])
Attachments
(1 file)
|
10.01 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
This fixes cases where we use PRBool when we should be using JSBool and vice versa.
It also removes one function where I could not find a user (xpc_SameScope).
Attachment #549719 -
Flags: review?(mrbkap)
Updated•14 years ago
|
Attachment #549719 -
Flags: review?(mrbkap) → review+
| Assignee | ||
Comment 1•14 years ago
|
||
Whiteboard: [inbound]
Comment 2•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Comment 3•14 years ago
|
||
Comment on attachment 549719 [details] [diff] [review]
Fix
>--- a/js/src/xpconnect/src/xpcwrappednativejsops.cpp
>+++ b/js/src/xpconnect/src/xpcwrappednativejsops.cpp
> JSObject **objp)
> {
> nsresult rv = NS_OK;
>- JSBool retval = JS_TRUE;
>+ PRBool retval = JS_TRUE;
Could you fix this mismatch?
| Assignee | ||
Comment 4•14 years ago
|
||
(In reply to Ms2ger from comment #3)
> Comment on attachment 549719 [details] [diff] [review] [diff] [details] [review]
> Fix
>
> >--- a/js/src/xpconnect/src/xpcwrappednativejsops.cpp
> >+++ b/js/src/xpconnect/src/xpcwrappednativejsops.cpp
> > JSObject **objp)
> > {
> > nsresult rv = NS_OK;
> >- JSBool retval = JS_TRUE;
> >+ PRBool retval = JS_TRUE;
>
> Could you fix this mismatch?
This isn't the only mismatch and I don't care about this sort of mismatch so much. I'll add a s/JS_TRUE/true/ to the sed in bug 675553 and fix all these at the same time.
You need to log in
before you can comment on or make changes to this bug.
Description
•