Commit 3f233975 authored by Milo Yip's avatar Milo Yip

Remove unncessary std::move()

Fixes #762
parent 11df748a
...@@ -214,7 +214,7 @@ static PrettyWriter<StringBuffer> WriterGen(StringBuffer &target) { ...@@ -214,7 +214,7 @@ static PrettyWriter<StringBuffer> WriterGen(StringBuffer &target) {
writer.StartObject(); writer.StartObject();
writer.Key("a"); writer.Key("a");
writer.Int(1); writer.Int(1);
return std::move(writer); return writer;
} }
TEST(PrettyWriter, MoveCtor) { TEST(PrettyWriter, MoveCtor) {
......
...@@ -507,7 +507,7 @@ static Writer<StringBuffer> WriterGen(StringBuffer &target) { ...@@ -507,7 +507,7 @@ static Writer<StringBuffer> WriterGen(StringBuffer &target) {
writer.StartObject(); writer.StartObject();
writer.Key("a"); writer.Key("a");
writer.Int(1); writer.Int(1);
return std::move(writer); return writer;
} }
TEST(Writer, MoveCtor) { TEST(Writer, MoveCtor) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment