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) {
96
96
void f9 (const std::string &s, std::string &str) {
97
97
std::string::iterator loc = str.begin ();
98
98
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
100
100
}
101
101
}
102
102
103
103
void f10 (const std::string &s, std::string &str) {
104
104
std::string::iterator loc = str.begin ();
105
105
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
107
107
}
108
108
}
109
109
You can’t perform that action at this time.
0 commit comments