File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ namespace fs = std::filesystem;
2222
2323
2424namespace graphql ::schema {
25-
25+
2626NamespaceScope::NamespaceScope (std::ostream& outputFile, std::string_view cppNamespace, bool deferred /* = false*/ ) noexcept
2727 : _outputFile(outputFile)
2828 , _cppNamespace(cppNamespace)
@@ -1663,8 +1663,10 @@ class Schema;
16631663 outputObjectDeclaration (headerFile, objectType, objectType.type == queryType);
16641664 headerFile << std::endl;
16651665 }
1666+ }
16661667
1667- objectNamespace.exit ();
1668+ if (objectNamespace.exit ())
1669+ {
16681670 headerFile << std::endl;
16691671 }
16701672
@@ -3242,7 +3244,7 @@ std::vector<std::string> Generator::outputSeparateFiles() const noexcept
32423244 {
32433245 files.push_back ({ _objectHeaderPath });
32443246 }
3245-
3247+
32463248 for (const auto & objectType : _objectTypes)
32473249 {
32483250 std::ostringstream ossNamespace;
@@ -3468,7 +3470,7 @@ int main(int argc, char** argv)
34683470 << " column: " << position.byte_in_line
34693471 << std::endl;
34703472 }
3471-
3473+
34723474 return 1 ;
34733475 }
34743476 catch (const std::runtime_error& ex)
You can’t perform that action at this time.
0 commit comments