HomeWildfire Games

Remove both copies of the 15-fold copies of the JSI_IGUIObject::getProperty and…

Description

Remove both copies of the 15-fold copies of the JSI_IGUIObject::getProperty and setProperty setting case handlers following the FromJSVal / ToJSVal template specializations implemented in

The removed JS_ReportError calls were redundant.

Event Timeline

wraitii added inline comments.
/ps/trunk/source/gui/IGUIObject.cpp
35

I think you're accidentally copying Name here.

44

Same here.

elexis added inline comments.Jul 29 2019, 5:24 PM
/ps/trunk/source/gui/IGUIObject.cpp
35

Nope.

wraitii added inline comments.Jul 29 2019, 5:30 PM
/ps/trunk/source/gui/IGUIObject.cpp
35

seen on IRC -> On purpose to avoid possible dangling references.

elexis added inline comments.Jul 29 2019, 5:34 PM
/ps/trunk/source/gui/IGUIObject.cpp
35

Not only possible but certain, and in 100% of the calls and crashing the game instantly on start.

elexis added inline comments.Jul 30 2019, 5:55 PM
/ps/trunk/source/gui/IGUIObject.cpp
44

This one is unused actually. The class is going to be refactored next, then the lambdas are regular functions as well.