diff options
author | Debao Zhang <dbzhang800@gmail.com> | 2012-04-25 23:48:38 -0700 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-27 03:08:16 +0200 |
commit | 1fc3d7d52666f318c83251c307b23f6ebe737b35 (patch) | |
tree | ce2ab12f44351fe84b1b726a35fd511254293bd1 /demos | |
parent | 210fd5e49bd54dfc68395fb119ffa6961499feda (diff) |
qMalloc, qFree, qRealloc, qMemCopy, qMemSet are deprecated.
Use the stdlib version directly instead
Change-Id: Icbcab5281ae601d3a44f048b969dc0f9c283e643
Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
Diffstat (limited to 'demos')
-rw-r--r-- | demos/qt3d/pageflip/pageflipmath.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/qt3d/pageflip/pageflipmath.cpp b/demos/qt3d/pageflip/pageflipmath.cpp index 8f6d85561..4853fc28a 100644 --- a/demos/qt3d/pageflip/pageflipmath.cpp +++ b/demos/qt3d/pageflip/pageflipmath.cpp @@ -41,6 +41,7 @@ #include "pageflipmath_p.h" #include <QtCore/qmath.h> +#include <string.h> QT_BEGIN_NAMESPACE @@ -53,8 +54,8 @@ PageFlipMath::PageFlipMath() m_showPageReverse = false; m_startCorner = BottomRight; - qMemSet(vertices, 0, sizeof(vertices)); - qMemSet(pageCount, 0, sizeof(pageCount)); + memset(vertices, 0, sizeof(vertices)); + memset(pageCount, 0, sizeof(pageCount)); } PageFlipMath::~PageFlipMath() |