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

Commit 65d8c03d authored by Jin Qian's avatar Jin Qian
Browse files

storaged: fix regression found in unit-test

Should use reference instead of copy to clear storaged proto

Bug: 63740245
Change-Id: Ibb933a0bac12508467fc104b37e7cc490dfbe948
parent 4b7f0fdc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -407,7 +407,7 @@ void get_io_usage_proto(io_usage* usage, const IOUsage& io_proto)

void uid_monitor::update_uid_io_proto(unordered_map<int, StoragedProto>* protos)
{
    for (auto it : *protos) {
    for (auto& it : *protos) {
        it.second.mutable_uid_io_usage()->Clear();
    }