Remove unncessary std::move()

Fixes #762
This commit is contained in:
Milo Yip 2016-10-05 15:02:31 +08:00
parent 11df748a3b
commit 3f23397596
2 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ static PrettyWriter<StringBuffer> WriterGen(StringBuffer &target) {
writer.StartObject();
writer.Key("a");
writer.Int(1);
return std::move(writer);
return writer;
}
TEST(PrettyWriter, MoveCtor) {

View File

@ -507,7 +507,7 @@ static Writer<StringBuffer> WriterGen(StringBuffer &target) {
writer.StartObject();
writer.Key("a");
writer.Int(1);
return std::move(writer);
return writer;
}
TEST(Writer, MoveCtor) {