summaryrefslogtreecommitdiff
path: root/render-test/runner.cpp
diff options
context:
space:
mode:
authorDane Springmeyer <springmeyer@users.noreply.github.com>2019-11-12 06:48:37 -0800
committerGitHub <noreply@github.com>2019-11-12 06:48:37 -0800
commitc1b2e8c9a013677ee795321ba74427551e6ecf2e (patch)
tree7ad2cb63163cc8c2c1bad44c98cfcf1f046782ba /render-test/runner.cpp
parent49456e3fc15e173bc61dbac77d5096abf3650056 (diff)
downloadqtlocation-mapboxgl-c1b2e8c9a013677ee795321ba74427551e6ecf2e.tar.gz
fix -Wfor-loop-analysis and -Wreorder warnings (#15901)
Diffstat (limited to 'render-test/runner.cpp')
-rw-r--r--render-test/runner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/render-test/runner.cpp b/render-test/runner.cpp
index 8a4b0b3b0e..0389b83575 100644
--- a/render-test/runner.cpp
+++ b/render-test/runner.cpp
@@ -1035,7 +1035,8 @@ bool TestRunner::runOperations(const std::string& key, TestMetadata& metadata, R
map.flyTo(mbgl::CameraOptions().withCenter(endPos).withZoom(endZoom), animationOptions);
- for (; !transitionFinished; frames++) {
+ while (!transitionFinished) {
+ frames++;
frontend.renderOnce(map);
float frameTime = (float)frontend.getFrameTime();
totalTime += frameTime;