Avoid std::move() for copy elision
This could disable zero-copy optimisations, which is the opposite of what we want.
This commit is contained in:
committed by
Ivan
parent
586fe11e22
commit
9d1b7af2eb
@@ -402,7 +402,7 @@ std::vector<std::string> fmt::split(const std::string& source, std::initializer_
|
|||||||
result.push_back(source.substr(cursor_begin));
|
result.push_back(source.substr(cursor_begin));
|
||||||
}
|
}
|
||||||
|
|
||||||
return std::move(result);
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string fmt::trim(const std::string& source, const std::string& values)
|
std::string fmt::trim(const std::string& source, const std::string& values)
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ public:
|
|||||||
if (const u32 idm_id = idm::import_existing<lv2_config_handle>(cfg))
|
if (const u32 idm_id = idm::import_existing<lv2_config_handle>(cfg))
|
||||||
{
|
{
|
||||||
cfg->idm_id = idm_id;
|
cfg->idm_id = idm_id;
|
||||||
return std::move(cfg);
|
return cfg;
|
||||||
}
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
@@ -259,7 +259,7 @@ public:
|
|||||||
{
|
{
|
||||||
service->wkptr = service;
|
service->wkptr = service;
|
||||||
service->idm_id = idm_id;
|
service->idm_id = idm_id;
|
||||||
return std::move(service);
|
return service;
|
||||||
}
|
}
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
@@ -326,7 +326,7 @@ public:
|
|||||||
{
|
{
|
||||||
listener->wkptr = listener;
|
listener->wkptr = listener;
|
||||||
listener->idm_id = idm_id;
|
listener->idm_id = idm_id;
|
||||||
return std::move(listener);
|
return listener;
|
||||||
}
|
}
|
||||||
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
@@ -389,7 +389,7 @@ public:
|
|||||||
|
|
||||||
g_fxo->get<lv2_config>()->add_service_event(ev);
|
g_fxo->get<lv2_config>()->add_service_event(ev);
|
||||||
|
|
||||||
return std::move(ev);
|
return ev;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|||||||
Reference in New Issue
Block a user