khtml: get rid of "FastMalloc"

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-02-24 05:21:15 +02:00
parent 0db6a11416
commit ce25e6a7f9

View file

@ -188,7 +188,7 @@ bool ScriptInterpreter::shouldInterruptScript() const
UString::UString(const QString &d)
{
unsigned int len = d.length();
UChar *dat = static_cast<UChar*>(fastMalloc(sizeof(UChar)*len));
UChar *dat = static_cast<UChar*>(malloc(sizeof(UChar)*len));
memcpy(dat, d.unicode(), len * sizeof(UChar));
m_rep = UString::Rep::create(dat, len);
}
@ -204,7 +204,7 @@ UString::UString(const DOM::DOMString &d)
}
unsigned int len = d.length();
UChar *dat = static_cast<UChar*>(fastMalloc(sizeof(UChar)*len));
UChar *dat = static_cast<UChar*>(malloc(sizeof(UChar)*len));
memcpy(dat, d.unicode(), len * sizeof(UChar));
m_rep = UString::Rep::create(dat, len);
}