Skip to content

Commit 07e51c4

Browse files
committed
Remove explicit call to std::move on std::string.
1 parent fc780ae commit 07e51c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/network/uri/decode.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ inline
9595
std::string decoded(const std::string &input) {
9696
std::string decoded;
9797
decode(input, std::back_inserter(decoded));
98-
return std::move(decoded);
98+
return decoded;
9999
}
100100
} // namespace network
101101

include/network/uri/encode.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ inline
163163
std::string encoded(const std::string &input) {
164164
std::string encoded;
165165
encode(input, std::back_inserter(encoded));
166-
return std::move(encoded);
166+
return encoded;
167167
}
168168
} // namespace network
169169

0 commit comments

Comments
 (0)