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 0dd7d3a8ee..5db7349a02 100644 --- a/libraries/ui/src/OffscreenUi.cpp +++ b/libraries/ui/src/OffscreenUi.cpp @@ -174,7 +174,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; @@ -184,7 +184,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");