Fix argument type for the StringContains function

refs #8659
This commit is contained in:
Gunnar Beutner 2015-03-11 06:42:45 +01:00
parent 059cda9e37
commit 73629172b4

View File

@ -110,11 +110,11 @@ static Value StringFind(const std::vector<Value>& args)
return result; return result;
} }
static bool StringContains(const Value& value) static bool StringContains(const String& str)
{ {
ScriptFrame *vframe = ScriptFrame::GetCurrentFrame(); ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
String self = vframe->Self; String self = vframe->Self;
return self.Contains(value); return self.Contains(str);
} }
static Value StringReplace(const String& search, const String& replacement) static Value StringReplace(const String& search, const String& replacement)