Skip to content

Commit 093900a

Browse files
authored
[micro] Replaced constructor of singleElement
Replaced bracket initializes constructor to simply constructor with two arguments in std::vector
1 parent 4fcb7af commit 093900a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/is_palindrome_test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct functorComparator
4242
void test_is_palindrome()
4343
{
4444
const std::list<int> empty;
45-
const std::vector<char> singleElement{'z'};
45+
const std::vector<char> singleElement(1, 'z');
4646
int oddNonPalindrome[] = {3,2,2};
4747
const int oddPalindrome[] = {1,2,3,2,1};
4848
const int evenPalindrome[] = {1,2,2,1};

0 commit comments

Comments
 (0)