Merge "Changed uid output parameter from an int array to a list of strings."
diff --git a/keystore/Android.bp b/keystore/Android.bp
index 366f591..c1d81b3 100644
--- a/keystore/Android.bp
+++ b/keystore/Android.bp
@@ -13,7 +13,6 @@
},
clang: true,
- cpp_std: "c++17",
}
cc_binary {
diff --git a/keystore/keymaster_worker.cpp b/keystore/keymaster_worker.cpp
index c7d2671..fd07e86 100644
--- a/keystore/keymaster_worker.cpp
+++ b/keystore/keymaster_worker.cpp
@@ -346,7 +346,7 @@
{
hidl_vec<uint8_t> clientId;
hidl_vec<uint8_t> appData;
- for (auto param : opParams) {
+ for (const auto& param : opParams) {
if (param.tag == Tag::APPLICATION_ID) {
clientId = authorizationValue(TAG_APPLICATION_ID, param).value();
} else if (param.tag == Tag::APPLICATION_DATA) {