diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-08-03 15:12:52 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-08-06 11:21:56 +0000 |
commit | dc16ed4af4bbd0596bff6f5aa05b0715fe9c19ba (patch) | |
tree | d0af962eec028d76e34a550862546b385240d346 /tests | |
parent | 7f1369544d5e14e24f3a2faaf52c38665386f406 (diff) |
standalone test: Change a const to static const
...to avoid lambda capture trouble: some compilers require stride to be
listed in the capture list, while others show a warning saying it is
unnecessary.
Change-Id: I67a3b2be51b6cfb3df76494f00791c6151d34497
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/standalone/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/standalone/main.cpp b/tests/manual/standalone/main.cpp index 95beb01..ec75994 100644 --- a/tests/manual/standalone/main.cpp +++ b/tests/manual/standalone/main.cpp @@ -80,7 +80,7 @@ void buildCustomMesh(Q3DSUipPresentation *pres, Q3DSLayerNode *layer, Q3DSSlide // need position and normal data at minimum for a non-textured default material Q3DSGeometry::Buffer b; - const int stride = (3 + 3) * sizeof(float); + static const int stride = (3 + 3) * sizeof(float); b.data.resize(geom->drawCount() * stride); float *p = reinterpret_cast<float *>(b.data.data()); // the built-in primitives like the cube go from -50..50, follow this scale for now |