mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
khtml: get rid of "FastMalloc"
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
0db6a11416
commit
ce25e6a7f9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue