commit | 9b18b764bc34c0ad53b08eb3f3ed02e0e50c3c51 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Jul 25 03:15:21 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Jul 25 03:15:21 2018 +0000 |
tree | c824ef596594256141ee6a15cd0ea3633150d081 | |
parent | 4a625453bfa6f42997d90be20e0499bdbe82bbaa [diff] | |
parent | 84eaf2f3b6082f124cda6d9c9840bf01706f6e2f [diff] |
Merge "Use std::move() to prevent unnecessary copying. [DO NOT MERGE]"
diff --git a/KeyStorage.cpp b/KeyStorage.cpp index 9d61555..9c6dba3 100644 --- a/KeyStorage.cpp +++ b/KeyStorage.cpp
@@ -141,7 +141,7 @@ 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) {