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

Commit 96b1f20b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix performance-inefficient-vector-operation"

parents dc4c873b 79ac2f52
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -112,6 +112,7 @@ int32_t DnsTlsQueryMap::getFreeId() {
std::vector<DnsTlsQueryMap::Query> DnsTlsQueryMap::getAll() {
    std::lock_guard guard(mLock);
    std::vector<DnsTlsQueryMap::Query> queries;
    queries.reserve(mQueries.size());
    for (auto& q : mQueries) {
        queries.push_back(q.second.query);
    }