Skip to content

Commit e32a4e4

Browse files
committed
C++: Format test file expectations.
1 parent b67dc05 commit e32a4e4

File tree

1 file changed

+2
-2
lines changed
  • cpp/common/test/rules/validcontainerelementaccess

1 file changed

+2
-2
lines changed

cpp/common/test/rules/validcontainerelementaccess/test.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ void f8(const int *ar) {
9696
void 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[FALSE POSITIVE for str]
100100
}
101101
}
102102

103103
void 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[FALSE POSITIVE]
107107
}
108108
}
109109

0 commit comments

Comments
 (0)