forked from mirrors/0ad
Make a method const.
This was SVN commit r17527.
This commit is contained in:
@@ -564,9 +564,9 @@ void ScriptInterface::DefineCustomObjectType(JSClass *clasp, JSNative constructo
|
||||
m_CustomObjectTypes[typeName] = std::move(type);
|
||||
}
|
||||
|
||||
JSObject* ScriptInterface::CreateCustomObject(const std::string & typeName)
|
||||
JSObject* ScriptInterface::CreateCustomObject(const std::string& typeName) const
|
||||
{
|
||||
std::map < std::string, CustomType > ::iterator it = m_CustomObjectTypes.find(typeName);
|
||||
std::map<std::string, CustomType>::const_iterator it = m_CustomObjectTypes.find(typeName);
|
||||
|
||||
if (it == m_CustomObjectTypes.end())
|
||||
throw PSERROR_Scripting_TypeDoesNotExist();
|
||||
|
||||
Reference in New Issue
Block a user