Fix svace issue 88/304088/3
authorjmm <j0064423.lee@samsung.com>
Wed, 10 Jan 2024 03:44:05 +0000 (12:44 +0900)
committerjmm <j0064423.lee@samsung.com>
Wed, 10 Jan 2024 04:15:25 +0000 (13:15 +0900)
Change-Id: I1c25cf639bad76e4326a9c0f363bad88738b4dd5

dali/internal/event/actors/actor-coords.cpp
dali/internal/render/common/render-manager.cpp

index 0cabf3c..8957850 100644 (file)
@@ -237,7 +237,7 @@ const Vector2 CalculateCurrentActorScreenPosition(const Actor& actor, BufferInde
     worldPosition -= cameraPosition;
 
     Vector3 actorSize = node.GetSize(bufferIndex) * node.GetWorldScale(bufferIndex);
-    auto    sceneSize = scene.GetCurrentSurfaceRect();                      // Use the update object's size
+    const auto& sceneSize = scene.GetCurrentSurfaceRect();                      // Use the update object's size
     Vector2 halfSceneSize(sceneSize.width * 0.5f, sceneSize.height * 0.5f); // World position origin is center of scene
     Vector3 halfActorSize(actorSize * 0.5f);
     Vector3 anchorPointOffSet = halfActorSize - actorSize * actor.GetAnchorPointForPosition();
@@ -396,7 +396,7 @@ const Vector2 CalculateCurrentActorScreenPositionRenderTaskList(const Actor& act
     const auto& node  = actor.GetNode();
     Scene&      scene = actor.GetScene();
 
-    auto        worldMatrix    = node.GetWorldMatrix(bufferIndex);
+    const auto& worldMatrix    = node.GetWorldMatrix(bufferIndex);
     const auto& renderTaskList = scene.GetRenderTaskList();
     ConvertLocalToScreenRenderTaskList(renderTaskList, actor, worldMatrix, node.GetSize(bufferIndex) * (actor.GetAnchorPointForPosition() - Vector3(0.5f, 0.5f, 0.5f)), result.x, result.y);
   }
@@ -540,7 +540,7 @@ Rect<> CalculateCurrentActorScreenExtentsRenderTaskList(const Actor& actor, Buff
     const auto& node  = actor.GetNode();
     Scene&      scene = actor.GetScene();
 
-    auto        worldMatrix    = node.GetWorldMatrix(bufferIndex);
+    const auto& worldMatrix    = node.GetWorldMatrix(bufferIndex);
     const auto& renderTaskList = scene.GetRenderTaskList();
     ConvertLocalToScreenExtentRenderTaskList(renderTaskList, actor, worldMatrix, node.GetSize(bufferIndex), result);
   }
index 48464b0..4931f12 100644 (file)
@@ -848,7 +848,7 @@ void RenderManager::RenderScene(Integration::RenderStatus& status, Integration::
             auto program = item.mRenderer->PrepareProgram(instruction);
             if(program)
             {
-              auto memoryRequirements = program->GetUniformBlocksMemoryRequirements();
+              const auto& memoryRequirements = program->GetUniformBlocksMemoryRequirements();
 
               totalSizeCPU += memoryRequirements.totalCpuSizeRequired;
               totalSizeGPU += memoryRequirements.totalGpuSizeRequired;