From 3554df2e34e63364eea3a7998e0dfb0e6be65ca4 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 30 Mar 2018 09:59:48 -0400 Subject: Started migrating to hkutil (does not build) --- generator/notion.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'generator/notion.cpp') diff --git a/generator/notion.cpp b/generator/notion.cpp index 1878ba9..35ba7b1 100644 --- a/generator/notion.cpp +++ b/generator/notion.cpp @@ -46,10 +46,11 @@ namespace verbly { { // First, serialize the notion { - std::list fields; + std::list fields; fields.emplace_back("notion_id", arg.getId()); - fields.emplace_back("part_of_speech", static_cast(arg.getPartOfSpeech())); + fields.emplace_back("part_of_speech", + static_cast(arg.getPartOfSpeech())); if (arg.hasWnid()) { @@ -69,12 +70,12 @@ namespace verbly { { for (std::string group : arg.getPrepositionGroups()) { - std::list fields; - - fields.emplace_back("notion_id", arg.getId()); - fields.emplace_back("groupname", group); - - db.insertIntoTable("is_a", std::move(fields)); + db.insertIntoTable( + "is_a", + { + { "notion_id", arg.getId() }, + { "groupname", group } + }); } } -- cgit 1.4.1