X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-scene-loader%2Fpublic-api%2Fmatrix-stack.cpp;h=eb2316e4332592cdb9c710f3bb8afc376c29e4b0;hb=aefac7b91818861d25e2312ea4b63d2deb1a9a86;hp=9d4454f84ea31d99ce892c2d89791c78ca1a486f;hpb=02557f62f8d171115d885c87c138faec2a3cb923;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-scene-loader/public-api/matrix-stack.cpp b/dali-scene-loader/public-api/matrix-stack.cpp index 9d4454f..eb2316e 100644 --- a/dali-scene-loader/public-api/matrix-stack.cpp +++ b/dali-scene-loader/public-api/matrix-stack.cpp @@ -1,5 +1,5 @@ /* -* Copyright (c) 2020 Samsung Electronics Co., Ltd. +* Copyright (c) 2021 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,7 +21,6 @@ namespace Dali { namespace SceneLoader { - MatrixStack::MatrixStack() { mStack.reserve(16); @@ -34,13 +33,13 @@ bool MatrixStack::IsEmpty() const void MatrixStack::Push(const Matrix& model) { - if (mStack.empty()) + if(mStack.empty()) { mStack.push_back(model); } else { - Matrix m{ false }; + Matrix m{false}; Matrix::Multiply(m, model, mStack.back()); mStack.push_back(m); } @@ -62,5 +61,5 @@ void MatrixStack::PopAll() mStack.clear(); } -} -} +} // namespace SceneLoader +} // namespace Dali