summaryrefslogtreecommitdiffstats
path: root/drm/1.1/vts/functional/drm_hal_clearkey_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'drm/1.1/vts/functional/drm_hal_clearkey_test.cpp')
-rw-r--r--drm/1.1/vts/functional/drm_hal_clearkey_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drm/1.1/vts/functional/drm_hal_clearkey_test.cpp b/drm/1.1/vts/functional/drm_hal_clearkey_test.cpp
index 124661696..7dedd7f0b 100644
--- a/drm/1.1/vts/functional/drm_hal_clearkey_test.cpp
+++ b/drm/1.1/vts/functional/drm_hal_clearkey_test.cpp
@@ -228,13 +228,13 @@ protected:
const std::string& componentName, const VT& componentValue) {
bool validAttribute = false;
bool validComponent = false;
- for (DrmMetricGroup::Attribute attribute : metric.attributes) {
+ for (const DrmMetricGroup::Attribute& attribute : metric.attributes) {
if (attribute.name == attributeName &&
ValueEquals(attribute.type, attributeValue, attribute)) {
validAttribute = true;
}
}
- for (DrmMetricGroup::Value value : metric.values) {
+ for (const DrmMetricGroup::Value& value : metric.values) {
if (value.componentName == componentName &&
ValueEquals(value.type, componentValue, value)) {
validComponent = true;