Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8aec01e authored by Jeremy Meyer's avatar Jeremy Meyer
Browse files

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
parent eb803fd5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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