From 3071be162ad935a82ec72a7212539866a4042c07 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Sun, 26 Apr 2015 20:11:27 -0700 Subject: [PATCH] Coding standards --- libraries/render-utils/src/MatrixStack.h | 6 +++--- libraries/ui/src/OffscreenUi.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/render-utils/src/MatrixStack.h b/libraries/render-utils/src/MatrixStack.h index 505818fc4a..afbd732b5d 100644 --- a/libraries/render-utils/src/MatrixStack.h +++ b/libraries/render-utils/src/MatrixStack.h @@ -38,7 +38,7 @@ public: push(glm::mat4()); } - explicit MatrixStack(const MatrixStack & other) { + explicit MatrixStack(const MatrixStack& other) { *((std::stack*)this) = *((std::stack*)&other); } @@ -173,12 +173,12 @@ public: } template - static void withPush(MatrixStack & stack, Function f) { + static void withPush(MatrixStack& stack, Function f) { stack.withPush(f); } template - static void withPush(MatrixStack & stack1, MatrixStack & stack2, Function f) { + static void withPush(MatrixStack& stack1, MatrixStack& stack2, Function f) { stack1.withPush([&]{ stack2.withPush(f); }); diff --git a/libraries/ui/src/OffscreenUi.cpp b/libraries/ui/src/OffscreenUi.cpp index 105e81404b..95e847d24b 100644 --- a/libraries/ui/src/OffscreenUi.cpp +++ b/libraries/ui/src/OffscreenUi.cpp @@ -175,7 +175,7 @@ QObject* OffscreenUi::finishQmlLoad(std::function disconnect(_qmlComponent, &QQmlComponent::statusChanged, this, 0); if (_qmlComponent->isError()) { QList errorList = _qmlComponent->errors(); - foreach(const QQmlError &error, errorList) { + foreach(const QQmlError& error, errorList) { qWarning() << error.url() << error.line() << error; } return nullptr; @@ -185,7 +185,7 @@ QObject* OffscreenUi::finishQmlLoad(std::function QObject* newObject = _qmlComponent->beginCreate(newContext); if (_qmlComponent->isError()) { QList errorList = _qmlComponent->errors(); - foreach(const QQmlError &error, errorList) + foreach(const QQmlError& error, errorList) qWarning() << error.url() << error.line() << error; if (!_rootItem) { qFatal("Unable to finish loading QML root");