File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
cpp/common/test/rules/validcontainerelementaccess Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,14 +96,14 @@ void f8(const int *ar) {
9696void f9 (const std::string &s, std::string &str) {
9797 std::string::iterator loc = str.begin ();
9898 for (auto i = s.begin (), e = s.end (); i != e; ++i, ++loc) { // NON_COMPLIANT
99- str.insert (loc, ' c' ); // NON_COMPLIANT[FALSE POSITIVE for str]
99+ str.insert (loc, ' c' ); // NON_COMPLIANT
100100 }
101101}
102102
103103void f10 (const std::string &s, std::string &str) {
104104 std::string::iterator loc = str.begin ();
105105 for (auto i = s.begin (), e = s.end (); i != e; ++i, ++loc) { // COMPLIANT
106- loc = str.insert (loc, ' c' ); // COMPLIANT[FALSE POSITIVE]
106+ loc = str.insert (loc, ' c' ); // COMPLIANT
107107 }
108108}
109109
You can’t perform that action at this time.
0 commit comments