summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-13 21:27:53 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-04-13 21:27:53 (GMT)
commit59b9f56a18ef0080938626df4a30bc869f8096ef (patch)
treee18ce5906f8f734d0ea118612014c9fb73dec6c8 /src/declarative/qml
parentcea6ae0efc70da9d570d9553aaf0dc354b8fcd2b (diff)
downloadQt-59b9f56a18ef0080938626df4a30bc869f8096ef.zip
Qt-59b9f56a18ef0080938626df4a30bc869f8096ef.tar.gz
Qt-59b9f56a18ef0080938626df4a30bc869f8096ef.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
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 =