From 21bb8bc6254b8ffd0ada603c668acc916d13b78b Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Wed, 30 Mar 2016 23:01:11 +0200 Subject: [PATCH] Fix warnings in testbed application --- testbed/common/ConcaveMesh.cpp | 6 +++--- testbed/opengl-framework/src/Light.cpp | 6 ------ testbed/scenes/concavemesh/ConcaveMeshScene.cpp | 1 - testbed/scenes/joints/JointsScene.cpp | 3 --- testbed/src/Gui.cpp | 2 +- testbed/src/TestbedApplication.cpp | 6 +++--- 6 files changed, 7 insertions(+), 17 deletions(-) diff --git a/testbed/common/ConcaveMesh.cpp b/testbed/common/ConcaveMesh.cpp index 4338a70d..3125a396 100644 --- a/testbed/common/ConcaveMesh.cpp +++ b/testbed/common/ConcaveMesh.cpp @@ -47,7 +47,7 @@ ConcaveMesh::ConcaveMesh(const openglframework::Vector3 &position, mScalingMatrix = openglframework::Matrix4::identity(); // For each subpart of the mesh - for (int i=0; i scenes = mApp->getScenes(); std::vector scenesNames; - for (int i=0; igetName().c_str()); } Label* labelScenes = new Label(mSimulationPanel, "Scene","sans-bold"); diff --git a/testbed/src/TestbedApplication.cpp b/testbed/src/TestbedApplication.cpp index 3db9b2ba..5baa3b82 100644 --- a/testbed/src/TestbedApplication.cpp +++ b/testbed/src/TestbedApplication.cpp @@ -50,8 +50,8 @@ const float TestbedApplication::SCROLL_SENSITIVITY = 0.02f; // Constructor TestbedApplication::TestbedApplication(bool isFullscreen) : Screen(Vector2i(1280, 760), "Testbed ReactPhysics3D", true, isFullscreen), - mIsInitialized(false), mFPS(0), mNbFrames(0), mPreviousTime(0), - mLastTimeComputedFPS(0), mFrameTime(0), mPhysicsTime(0), mGui(this) { + mIsInitialized(false), mGui(this), mFPS(0), mNbFrames(0), mPreviousTime(0), + mLastTimeComputedFPS(0), mFrameTime(0), mPhysicsTime(0) { mCurrentScene = NULL; mIsMultisamplingActive = true; @@ -128,7 +128,7 @@ void TestbedApplication::createScenes() { // Remove all the scenes void TestbedApplication::destroyScenes() { - for (int i=0; i