Use std::move() to prevent unnecessary copying. [DO NOT MERGE]

Bug: http://b/110779387
Test: Builds with new toolchain.
Change-Id: I735a3ecda11a662edaddbe21c36433a91bb8a7f1
This commit is contained in:
Stephen Hines 2018-07-20 11:19:53 -07:00
parent 4a625453bf
commit 84eaf2f3b6

View file

@ -141,7 +141,7 @@ static AuthorizationSet beginParams(const KeyAuthentication& auth,
LOG(DEBUG) << "Supplying auth token to Keymaster";
paramBuilder.Authorization(TAG_AUTH_TOKEN, blob2hidlVec(auth.token));
}
return paramBuilder;
return std::move(paramBuilder);
}
static bool readFileToString(const std::string& filename, std::string* result) {