Fix the clone() methods for the Array and Dictionary class

refs #8065
This commit is contained in:
Gunnar Beutner 2014-12-12 15:38:06 +01:00
parent cfd775c948
commit 0a4c461caa
2 changed files with 4 additions and 4 deletions

View File

@ -66,11 +66,11 @@ static void ArrayClear(void)
self->Clear();
}
static void ArrayClone(void)
static Array::Ptr ArrayClone(void)
{
ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
Array::Ptr self = static_cast<Array::Ptr>(vframe->Self);
self->ShallowClone();
return self->ShallowClone();
}
Object::Ptr Array::GetPrototype(void)

View File

@ -52,11 +52,11 @@ static bool DictionaryContains(const String& key)
return self->Contains(key);
}
static void DictionaryClone(void)
static Dictionary::Ptr DictionaryClone(void)
{
ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
Dictionary::Ptr self = static_cast<Dictionary::Ptr>(vframe->Self);
self->ShallowClone();
return self->ShallowClone();
}
Object::Ptr Dictionary::GetPrototype(void)