mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Pass ScriptInterface as a const ref where possible.
Reviewed By: elexis Differential Revision: https://code.wildfiregames.com/D739 This was SVN commit r20028.
This commit is contained in:
@@ -31,7 +31,7 @@ class CComponentTypeScript
|
||||
{
|
||||
NONCOPYABLE(CComponentTypeScript);
|
||||
public:
|
||||
CComponentTypeScript(ScriptInterface& scriptInterface, JS::HandleValue instance);
|
||||
CComponentTypeScript(const ScriptInterface& scriptInterface, JS::HandleValue instance);
|
||||
|
||||
JS::Value GetInstance() const { return m_Instance.get(); }
|
||||
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
ScriptInterface& m_ScriptInterface;
|
||||
const ScriptInterface& m_ScriptInterface;
|
||||
JS::PersistentRootedValue m_Instance;
|
||||
bool m_HasCustomSerialize;
|
||||
bool m_HasCustomDeserialize;
|
||||
|
||||
Reference in New Issue
Block a user