Visitar URL original
#15146 (FN stlFindInsert with flipped condition) – Cppcheck

Opened 7 days ago

Last modified 5 days ago

#15146 accepted enhancement

FN stlFindInsert with flipped condition

Reported by: chrchr Owned by: pfultz2
Priority: Normal Milestone:
Component: Improve check Version:
Keywords: stlFindInsert Cc:

Description

void g(std::map<int, bool>& m) {
    if (0 == m.count(1))
        m[1] = true;
}

Change History (1)

comment:1 by pfultz2, 5 days ago

Owner: changed from noone to pfultz2
Status: new → accepted
Note: See TracTickets for help on using tickets.