From e1fa4a088dd95caef22045f905a9d5d22b71bef0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 24 Jan 2017 21:50:39 -0500 Subject: Whitespace changes --- generator/notion.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'generator/notion.cpp') diff --git a/generator/notion.cpp b/generator/notion.cpp index 290d982..1878ba9 100644 --- a/generator/notion.cpp +++ b/generator/notion.cpp @@ -30,15 +30,15 @@ namespace verbly { { // Calling code should always call hasWnid and check that the notion is a noun first. assert(hasWnid_ && (partOfSpeech_ == part_of_speech::noun)); - + numOfImages_++; } - + void notion::setPrepositionGroups(std::list groups) { // Calling code should always check that the notion is a preposition first. assert(partOfSpeech_ == part_of_speech::preposition); - + prepositionGroups_ = groups; } @@ -54,7 +54,7 @@ namespace verbly { if (arg.hasWnid()) { fields.emplace_back("wnid", arg.getWnid()); - + if (arg.getPartOfSpeech() == part_of_speech::noun) { fields.emplace_back("images", arg.getNumOfImages()); @@ -63,17 +63,17 @@ namespace verbly { db.insertIntoTable("notions", std::move(fields)); } - + // Next, serialize the is_a relationship if this is a preposition if (arg.getPartOfSpeech() == part_of_speech::preposition) { 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)); } } -- cgit 1.4.1