Resolve compile warning - pessimizing-move 43/316943/1
authorEunki Hong <eunkiki.hong@samsung.com>
Fri, 30 Aug 2024 12:46:35 +0000 (21:46 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Fri, 30 Aug 2024 12:46:55 +0000 (21:46 +0900)
warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
   59 |   return std::move(fullName.str());

Change-Id: I8a4a07e928c5c14fd8f101f951cd2dec2791858d
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali/internal/web-engine/common/web-engine-impl.cpp

index a96d227..7940642 100644 (file)
@@ -56,7 +56,7 @@ std::string MakePluginName(const char* environmentName)
 {
   std::stringstream fullName;
   fullName << kPluginFullNamePrefix << environmentName << kPluginFullNamePostfix;
-  return std::move(fullName.str());
+  return fullName.str();
 }
 
 Dali::BaseHandle Create()