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

This commit is contained in:
Treehugger Robot 2018-07-25 03:15:21 +00:00 committed by Gerrit Code Review
commit 9b18b764bc

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) {