diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-07 06:11:44 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-07 06:11:44 (GMT) |
commit | 7f1eac149d76f33770f54b20fe7cd27a4e4b09d4 (patch) | |
tree | 51e762010cb7b7fa8450e49991e9a6f22f445f90 /src/declarative/qml/qdeclarativevme.cpp | |
parent | fa730e0d0ba38ca7db09b6eb95bb656bdc67a8b0 (diff) | |
download | Qt-7f1eac149d76f33770f54b20fe7cd27a4e4b09d4.zip Qt-7f1eac149d76f33770f54b20fe7cd27a4e4b09d4.tar.gz Qt-7f1eac149d76f33770f54b20fe7cd27a4e4b09d4.tar.bz2 |
Build on Windows.
Diffstat (limited to 'src/declarative/qml/qdeclarativevme.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativevme.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativevme.cpp b/src/declarative/qml/qdeclarativevme.cpp index 0117880..2d1a549 100644 --- a/src/declarative/qml/qdeclarativevme.cpp +++ b/src/declarative/qml/qdeclarativevme.cpp @@ -246,7 +246,12 @@ QObject *QDeclarativeVME::run(QDeclarativeVMEStack<QObject *> &stack, { QObject *o = (QObject *)operator new(instr.createSimple.typeSize + sizeof(QDeclarativeDeclarativeData)); - ::bzero(o, 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 = |