Skip to content

Commit

Permalink
Merge pull request #72 from jwillemsen/jwi-fixwrninga
Browse files Browse the repository at this point in the history
Fix hides warnings
  • Loading branch information
jwillemsen authored Aug 30, 2024
2 parents 47a7350 + 2b341a9 commit 0e427e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions XSC/be/CXX/Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,12 @@ generate (po::variables_map const& vm, Schema& schema, fs::path const& file_path
std::string ixx_expr (vm["cxx-inline-regex"].as<std::string> ());
std::string cxx_expr (vm["cxx-source-regex"].as<std::string> ());


//Output file names are named <name>.<suffix>
// Output file names are named <name>.<suffix>
std::string hxx_name (regex::perl_s (name, hxx_expr) + hxx_suffix);
std::string ixx_name (regex::perl_s (name, ixx_expr) + ixx_suffix);
std::string cxx_name (regex::perl_s (name, cxx_expr) + cxx_suffix);

//File handlers are created for each file name
// File handlers are created for each file name
fs::path hxx_path (hxx_name);
fs::path ixx_path (ixx_name);
fs::path cxx_path (cxx_name);
Expand Down
2 changes: 1 addition & 1 deletion XSC/be/CXX/Header.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ generate_header (Context& ctx,

if (ctx.cpp11())
{
ctx.os << "#include \"tao/x11/stddef.h\"" << endl;
ctx.os << "#include \"tao/x11/base/stddef.h\"" << endl;
}

Traversal::Schema traverser;
Expand Down
6 changes: 3 additions & 3 deletions XSC/be/CXX/Source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,8 +1145,8 @@ namespace
<< endl;

os << scope << "::" << endl
<< name << " (" << xml_element_type << " const& e)" << endl
<< ":" << "Base (e)"
<< name << " (" << xml_element_type << " const& element)" << endl
<< ":" << "Base (element)"
<< "{"
<< endl;
}
Expand All @@ -1161,7 +1161,7 @@ namespace

if (he || ha)
{
os << parser_type << " p (e);"
os << parser_type << " p (element);"
<< endl;

if (he)
Expand Down

0 comments on commit 0e427e6

Please sign in to comment.