Fix svace issue 90/304090/1
authorjmm <j0064423.lee@samsung.com>
Wed, 10 Jan 2024 03:44:49 +0000 (12:44 +0900)
committerjmm <j0064423.lee@samsung.com>
Wed, 10 Jan 2024 03:44:49 +0000 (12:44 +0900)
Change-Id: I2646aae8db36a5471915e6ee4101beef4a51c9ba

dali-toolkit/internal/visuals/image-visual-shader-debug.cpp
dali-toolkit/public-api/controls/control-impl.cpp

index 9a5cca6..776b42b 100644 (file)
@@ -283,8 +283,8 @@ void ApplyImageVisualShaderDebugScriptCode(std::string& fragmentShader)
 
   for(std::size_t i = 0u; i < resultMap.Count(); ++i)
   {
-    auto key   = resultMap.GetKeyAt(i);
-    auto value = resultMap.GetValue(i);
+    auto        key   = resultMap.GetKeyAt(i);
+    const auto& value = resultMap.GetValue(i);
 
     RedefineMacro(fragmentShader, std::move(key.stringKey), value.Get<std::string>());
   }
index 52e9764..fbf364a 100644 (file)
@@ -448,7 +448,7 @@ void Control::Initialize()
   Self().GetTypeInfo(type);
   if(type)
   {
-    auto typeName = type.GetName();
+    const auto& typeName = type.GetName();
     DevelControl::AppendAccessibilityAttribute(Toolkit::Control::DownCast(Self()), "class", typeName);
   }
 }