summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-13 21:27:53 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-04-15 12:51:06 (GMT)
commit808b2adba63177e8a15f4d6e555dfce1c160c6e9 (patch)
tree400b2216423018f54d07938ea987fa929d43082f /src/declarative/qml
parent7e0aa0a2306ada727bce07178379f0f72dd70d20 (diff)
downloadQt-808b2adba63177e8a15f4d6e555dfce1c160c6e9.zip
Qt-808b2adba63177e8a15f4d6e555dfce1c160c6e9.tar.gz
Qt-808b2adba63177e8a15f4d6e555dfce1c160c6e9.tar.bz2
Fix compilation on Solaris, AIX and HP-UX.
There's no bzero function in POSIX. It's a 4.3BSD function, legacy in POSIX.2001 and removed in POSIX.2008. And good compilers will inline the function anyway by a builtin. It's one of the most basic algorithms. Reviewed-by: Trust Me (cherry picked from commit 59b9f56a18ef0080938626df4a30bc869f8096ef)
Diffstat (limited to 'src/declarative/qml')
-rw-r--r--src/declarative/qml/qdeclarativevme.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/declarative/qml/qdeclarativevme.cpp b/src/declarative/qml/qdeclarativevme.cpp
index 0addfabd..3575c17 100644
--- a/src/declarative/qml/qdeclarativevme.cpp
+++ b/src/declarative/qml/qdeclarativevme.cpp
@@ -246,12 +246,7 @@ QObject *QDeclarativeVME::run(QDeclarativeVMEStack<QObject *> &stack,
{
QObject *o = (QObject *)operator new(instr.createSimple.typeSize +
sizeof(QDeclarativeDeclarativeData));
-#if defined(Q_OS_WIN32) || defined(Q_OS_WINCE)
::memset(o, 0, instr.createSimple.typeSize + sizeof(QDeclarativeDeclarativeData));
-#else
- // faster than memset
- ::bzero(o, instr.createSimple.typeSize + sizeof(QDeclarativeDeclarativeData));
-#endif
instr.createSimple.create(o);
QDeclarativeDeclarativeData *ddata =