Skip to content

Commit cc60b51

Browse files
committed
Add missing parens (from API modernization)
1 parent 94f29a8 commit cc60b51

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/persist/monospace/MonoMultiDeleteUTest.cxxtest

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void MultiDeleteUTest::worker(int thread_id)
103103
{
104104
int id = (thread_id + i) % (thread_id + 7);
105105
Handle hb(as->add_node(CONCEPT_NODE, std::to_string(id)));
106-
Handle li(as->add_link(LIST_LINK, ha, hb, ha, hb));
106+
Handle li(as->add_link(LIST_LINK, {ha, hb, ha, hb}));
107107

108108
// Store the link.
109109
store->store_atom(li);
@@ -113,7 +113,7 @@ void MultiDeleteUTest::worker(int thread_id)
113113
{
114114
int id = (thread_id + i) % (thread_id + 7);
115115
Handle hb(as->get_node(CONCEPT_NODE, std::to_string(id)));
116-
Handle li(as->get_link(LIST_LINK, ha, hb, ha, hb));
116+
Handle li(as->get_link(LIST_LINK, {ha, hb, ha, hb}));
117117

118118
// If it's already gone, do nothing.
119119
if (nullptr == li) continue;

tests/persist/rocks/MultiDeleteUTest.cxxtest

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void MultiDeleteUTest::worker(int thread_id)
103103
{
104104
int id = (thread_id + i) % (thread_id + 7);
105105
Handle hb(as->add_node(CONCEPT_NODE, std::to_string(id)));
106-
Handle li(as->add_link(LIST_LINK, ha, hb, ha, hb));
106+
Handle li(as->add_link(LIST_LINK, {ha, hb, ha, hb}));
107107

108108
// Store the link.
109109
store->store_atom(li);
@@ -113,7 +113,7 @@ void MultiDeleteUTest::worker(int thread_id)
113113
{
114114
int id = (thread_id + i) % (thread_id + 7);
115115
Handle hb(as->get_node(CONCEPT_NODE, std::to_string(id)));
116-
Handle li(as->get_link(LIST_LINK, ha, hb, ha, hb));
116+
Handle li(as->get_link(LIST_LINK, {ha, hb, ha, hb}));
117117

118118
// If it's already gone, do nothing.
119119
if (nullptr == li) continue;

0 commit comments

Comments
 (0)