Skip to content

Commit 1457c8a

Browse files
committed
TestCmdlineParser: replaced .at() with index operators
1 parent 481c826 commit 1457c8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/testcmdlineparser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,15 +626,15 @@ class TestCmdlineParser : public TestFixture {
626626
const char * const argv[] = {"cppcheck", "file.cpp"};
627627
ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv));
628628
ASSERT_EQUALS(1, parser->mPathNames.size());
629-
ASSERT_EQUALS("file.cpp", parser->mPathNames.at(0));
629+
ASSERT_EQUALS("file.cpp", parser->mPathNames[0]);
630630
}
631631

632632
void onepath() {
633633
REDIRECT;
634634
const char * const argv[] = {"cppcheck", "src"};
635635
ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv));
636636
ASSERT_EQUALS(1, parser->mPathNames.size());
637-
ASSERT_EQUALS("src", parser->mPathNames.at(0));
637+
ASSERT_EQUALS("src", parser->mPathNames[0]);
638638
}
639639

640640
void optionwithoutfile() {

0 commit comments

Comments
 (0)