Index: tools/json_schema_compiler/util.h |
diff --git a/tools/json_schema_compiler/util.h b/tools/json_schema_compiler/util.h |
index 8d206a6672a4870dd609f4235766ca474bba3e25..d7862cea4f63a6682cbe25aebc8bbe0a67eae08e 100644 |
--- a/tools/json_schema_compiler/util.h |
+++ b/tools/json_schema_compiler/util.h |
@@ -102,7 +102,7 @@ |
out->clear(); |
T item; |
for (const auto& value : list) { |
- if (!PopulateItem(value, &item)) |
+ if (!PopulateItem(*value, &item)) |
return false; |
// T might not be movable, but in that case it should be copyable, and this |
// will still work. |
@@ -121,7 +121,7 @@ |
out->clear(); |
T item; |
for (const auto& value : list) { |
- if (!PopulateItem(value, &item, error)) |
+ if (!PopulateItem(*value, &item, error)) |
return false; |
out->push_back(std::move(item)); |
} |