From 31021c1dfdeb8961392fa0b1269b82bb32ed9ac5 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Fri, 22 May 2015 21:46:05 -0700 Subject: [PATCH] more work on smart pointers --- tests/octree/src/ModelTests.cpp | 39 +++++++++------------------------ 1 file changed, 10 insertions(+), 29 deletions(-) diff --git a/tests/octree/src/ModelTests.cpp b/tests/octree/src/ModelTests.cpp index 2844c60b02..548428960c 100644 --- a/tests/octree/src/ModelTests.cpp +++ b/tests/octree/src/ModelTests.cpp @@ -68,11 +68,8 @@ void EntityTests::entityTreeTests(bool verbose) { const AACube& elementCube = containingElement ? containingElement->getAACube() : AACube(); if (verbose) { - // FIX ME - /* - qDebug() << "foundEntityByRadius=" << foundEntityByRadius; - qDebug() << "foundEntityByID=" << foundEntityByID; - */ + qDebug() << "foundEntityByRadius=" << foundEntityByRadius.get(); + qDebug() << "foundEntityByID=" << foundEntityByID.get(); qDebug() << "containingElement=" << containingElement; qDebug() << "containingElement.box=" << elementCube.getCorner().x << "," @@ -112,11 +109,8 @@ void EntityTests::entityTreeTests(bool verbose) { const AACube& elementCube = containingElement ? containingElement->getAACube() : AACube(); if (verbose) { - // FIX ME! - /* - qDebug() << "foundEntityByRadius=" << foundEntityByRadius; - qDebug() << "foundEntityByID=" << foundEntityByID; - */ + qDebug() << "foundEntityByRadius=" << foundEntityByRadius.get(); + qDebug() << "foundEntityByID=" << foundEntityByID.get(); qDebug() << "containingElement=" << containingElement; qDebug() << "containingElement.box=" << elementCube.getCorner().x << "," @@ -155,11 +149,8 @@ void EntityTests::entityTreeTests(bool verbose) { const AACube& elementCube = containingElement ? containingElement->getAACube() : AACube(); if (verbose) { - // FIX ME! - /* - qDebug() << "foundEntityByRadius=" << foundEntityByRadius; - qDebug() << "foundEntityByID=" << foundEntityByID; - */ + qDebug() << "foundEntityByRadius=" << foundEntityByRadius.get(); + qDebug() << "foundEntityByID=" << foundEntityByID.get(); qDebug() << "containingElement=" << containingElement; qDebug() << "containingElement.box=" << elementCube.getCorner().x << "," @@ -195,10 +186,7 @@ void EntityTests::entityTreeTests(bool verbose) { quint64 end = usecTimestampNow(); if (verbose) { - // FIX ME! - /* - qDebug() << "foundEntityByRadius=" << foundEntityByRadius; - */ + qDebug() << "foundEntityByRadius=" << foundEntityByRadius.get(); } bool passed = true; // foundEntityByRadius; @@ -301,11 +289,8 @@ void EntityTests::entityTreeTests(bool verbose) { bool elementIsBestFit = containingElement->bestFitEntityBounds(foundEntityByID); if (extraVerbose) { - // FIX ME! - /* - qDebug() << "foundEntityByRadius=" << foundEntityByRadius; - qDebug() << "foundEntityByID=" << foundEntityByID; - */ + qDebug() << "foundEntityByRadius=" << foundEntityByRadius.get(); + qDebug() << "foundEntityByID=" << foundEntityByID.get(); qDebug() << "containingElement=" << containingElement; qDebug() << "containingElement.box=" << elementCube.getCorner().x << "," @@ -391,11 +376,7 @@ void EntityTests::entityTreeTests(bool verbose) { EntityTreeElement* containingElement = tree.getContainingElement(entityID); if (extraVerbose) { - // FIX ME! - /* - qDebug() << "foundEntityByRadius=" << foundEntityByRadius; - qDebug() << "foundEntityByID=" << foundEntityByID; - */ + qDebug() << "foundEntityByID=" << foundEntityByID.get(); } // Every 1000th test, show the size of the tree...