Skip to content

Commit 3af63f6

Browse files
committed
Cleanup leftover initializer_list reference
1 parent 529abc4 commit 3af63f6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ClientGenerator.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -691,10 +691,7 @@ void Generator::addTypesToSchema(const std::shared_ptr<schema::Schema>& schema)
691691
return interfaceTypes[interfaceName];
692692
});
693693

694-
itr->second->AddInterfaces(
695-
std::initializer_list<std::shared_ptr<const schema::InterfaceType>>(
696-
interfaces.data(),
697-
interfaces.data() + interfaces.size()));
694+
itr->second->AddInterfaces(std::move(interfaces));
698695
}
699696

700697
if (!objectType.fields.empty())

0 commit comments

Comments
 (0)