diff options
| author | 2022-09-20 20:48:11 +0000 | |
|---|---|---|
| committer | 2022-09-20 22:10:06 +0000 | |
| commit | b8aec01e6a8485a6975643199f4d3bc8d03aed81 (patch) | |
| tree | 248050b7e7122ac4d2dd03b31adfb42a481a0f14 | |
| parent | eb803fd53e0222285b5b475c0e120873933c430c (diff) | |
Avoid unnecessary object creation
Without this change there are errors when running with the new version
of clang
Bug: 247585041
Test: verified that frros used for colors still works, automated tests
Change-Id: Iebbef8aaca866c6f34c381792c1e66bd6b2121f0
| -rw-r--r-- | cmds/idmap2/libidmap2/Idmap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/idmap2/libidmap2/Idmap.cpp b/cmds/idmap2/libidmap2/Idmap.cpp index 4efaeea74274..444f91d144a2 100644 --- a/cmds/idmap2/libidmap2/Idmap.cpp +++ b/cmds/idmap2/libidmap2/Idmap.cpp @@ -222,7 +222,7 @@ std::unique_ptr<const IdmapData> IdmapData::FromBinaryStream(std::istream& strea || !Read32(stream, &entry_count)) { return nullptr; } - target_inline_entries.emplace_back(std::make_tuple(target_entry, entry_offset, entry_count)); + target_inline_entries.emplace_back(target_entry, entry_offset, entry_count); } // Read the inline overlay resource values @@ -241,7 +241,7 @@ std::unique_ptr<const IdmapData> IdmapData::FromBinaryStream(std::istream& strea || !Read32(stream, &value.data_value)) { return nullptr; } - target_values.emplace_back(std::make_pair(config_index, value)); + target_values.emplace_back(config_index, value); } // Read the configurations |