src: Remove unnecessary std::move to allow copy elision
Change-Id: I1a83c762dfc51525affd5b01a3c4822b9579c57a
Refs: #3357
diff --git a/src/name.cpp b/src/name.cpp
index 2e2dd6c..0e1b11c 100644
--- a/src/name.cpp
+++ b/src/name.cpp
@@ -170,13 +170,13 @@
void
Name::set(const char* uri)
{
- *this = std::move(Name(uri));
+ *this = Name(uri);
}
void
Name::set(const std::string& uri)
{
- *this = std::move(Name(uri));
+ *this = Name(uri);
}
std::string
@@ -371,7 +371,7 @@
{
std::string inputString;
is >> inputString;
- name = std::move(Name(inputString));
+ name = Name(inputString);
return is;
}