Commit 5a30360
committed
Bug 2017797 - Part 2: Don't require bindings header for IS_INSTANCE_OF, r=smaug
The implementaion of IS_INSTANCE_OF previously specified the true native type T to UnwrapObjectInternal. This is unnecessary, as it is not part of the actual "IsInstanceOf" check, and is only used for a static cast (which is then discarded). This patch changes the passed-in type to be `void`. This change should have no runtime effect (the value was assigned into a void* immediately anyways), but avoids requiring callers which use IS_INSTANCE_OF to import the relevant bindings headers. Differential Revision: https://phabricator.services.mozilla.com/D2845221 parent 5682b06 commit 5a30360
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 175 | + | |
| 176 | + | |
179 | 177 | | |
180 | 178 | | |
181 | 179 | | |
| |||
422 | 420 | | |
423 | 421 | | |
424 | 422 | | |
425 | | - | |
| 423 | + | |
426 | 424 | | |
427 | 425 | | |
428 | 426 | | |
429 | | - | |
| 427 | + | |
430 | 428 | | |
431 | 429 | | |
432 | 430 | | |
| |||
0 commit comments