tabs -> spaces, remove raw ptr, remove unnecessary spec diff

This commit is contained in:
Ryan Jones 2016-12-05 12:57:21 -08:00
parent 39e1a3fb44
commit 094857949d
7 changed files with 30 additions and 36 deletions

View file

@ -15,12 +15,12 @@
#include "Application.h"
TestingDialog::TestingDialog(QWidget* parent) :
QDialog(parent, Qt::Window | Qt::WindowCloseButtonHint | Qt::WindowStaysOnTopHint)
QDialog(parent, Qt::Window | Qt::WindowCloseButtonHint | Qt::WindowStaysOnTopHint),
_console(new JSConsole(this))
{
setAttribute(Qt::WA_DeleteOnClose);
setWindowTitle(windowLabel);
_console = new JSConsole(this);
_console->setFixedHeight(TESTING_CONSOLE_HEIGHT);
auto _engines = DependencyManager::get<ScriptEngines>();
@ -29,11 +29,7 @@ TestingDialog::TestingDialog(QWidget* parent) :
connect(_engine, &ScriptEngine::finished, this, &TestingDialog::onTestingFinished);
}
TestingDialog::~TestingDialog() {
delete _console;
}
void TestingDialog::onTestingFinished(const QString& scriptPath) {
_engine = NULL;
_console->setScriptEngine(NULL);
_engine = nullptr;
_console->setScriptEngine(nullptr);
}

View file

@ -24,12 +24,11 @@ class TestingDialog : public QDialog {
Q_OBJECT
public:
TestingDialog(QWidget* parent);
~TestingDialog();
void onTestingFinished(const QString& scriptPath);
private:
JSConsole* _console;
std::unique_ptr<JSConsole> _console;
ScriptEngine* _engine;
};

View file

@ -14,7 +14,6 @@ describe("MyAvatar", function () {
// wait until we are finished loading
var id = Script.setInterval(function () {
print(MyAvatar.jointNames.length);
if (MyAvatar.jointNames.length == 72) {
// assume we are finished loading.
Script.clearInterval(id);