Remove gcc-13 build warning [-Wpessimizing-move] 86/302486/1
authorEunki Hong <eunkiki.hong@samsung.com>
Thu, 7 Dec 2023 15:12:47 +0000 (00:12 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Thu, 7 Dec 2023 15:12:47 +0000 (00:12 +0900)
commit9ee08ab4b360a4bfff2e08e4685cb3961d282246
tree6af021577aaad0fb1e0f093bbe248c7363666dbb
parent9fd751cb2c76d885c8e44a1a8245b2837ab2584d
Remove gcc-13 build warning [-Wpessimizing-move]

/home/leaf/work/dali-toolkit/dali-toolkit/internal/visuals/image-visual-shader-debug.cpp: In function ‘void Dali::Toolkit::Internal::ImageVisualShaderDebug::ApplyImageVisualShaderDebugScriptCode(std::string&)’:
/home/leaf/work/dali-toolkit/dali-toolkit/internal/visuals/image-visual-shader-debug.cpp:289:70: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
  289 |     RedefineMacro(fragmentShader, std::move(key.stringKey), std::move(value.Get<std::string>()));
      |                                                             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/leaf/work/dali-toolkit/dali-toolkit/internal/visuals/image-visual-shader-debug.cpp:289:70: note: remove ‘std::mov’ call

Change-Id: I7327933872cca94879b39ab52f904f0d580d29b0
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali-toolkit/internal/visuals/image-visual-shader-debug.cpp