Use std::move() to prevent unnecessary copying. [DO NOT MERGE]
Bug: http://b/110779387
Test: Builds with new toolchain.
Change-Id: I735a3ecda11a662edaddbe21c36433a91bb8a7f1
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) {