Merge pull request #763 from miloyip/issue762_move

Remove unncessary std::move()
This commit is contained in:
Milo Yip 2016-10-05 17:32:16 +08:00 committed by GitHub
commit 94b36dc97e
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) {