1
0
forked from mirrors/0ad

Make a method const.

This was SVN commit r17527.
This commit is contained in:
leper
2015-12-22 14:08:32 +00:00
parent bd35b097e2
commit 848efb56b3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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();