Skip to content

Commit

Permalink
Code simplify
Browse files Browse the repository at this point in the history
    * XSC/be/CXX/Header.cpp:
  • Loading branch information
jwillemsen committed Aug 30, 2024
1 parent dd45753 commit 199de9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions XSC/be/CXX/Header.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ namespace
break;
case CPPMODE::CPP11:
case CPPMODE::CPP17:
os << "using " << name << "_container_type = " << container << "< " << type << ">;";
os << "using " << name << "_container_type = " << container << "<" << type << ">;";
break;
}
switch(this->cppmode_)
Expand Down Expand Up @@ -237,7 +237,7 @@ namespace
os << "bool " << name << "_p () const;";
os << type << " const& " << id (name) << " () const;";
// os << type << "& " << id (name) << " ();"; // Lets just have one mutator
os << "void " << id (name) << " (" << type << " const& );";
os << "void " << id (name) << " (" << type << " const&);";

//Added for IDREF case
if ((idref_ptr != std::string::npos) && (this->cppmode_ == CPPMODE::CPP03))
Expand Down Expand Up @@ -267,7 +267,7 @@ namespace
//
os << type << " const& " << id (name) << " () const;";
// os << type << "& " << id (name) << " ();"; // Lets just have one mutator.
os << "void " << id (name) << " (" << type << " const& );";
os << "void " << id (name) << " (" << type << " const&);";

//Added for IDREF case
if ((idref_ptr != std::string::npos) && (this->cppmode_ == CPPMODE::CPP03))
Expand Down Expand Up @@ -339,7 +339,7 @@ namespace
os << "bool " << name << "_p () const;";
os << type << " const& " << id (name) << " () const;";
os << type << "& " << id (name) << " ();";
os << "void " << id (name) << " (" << type << " const& );";
os << "void " << id (name) << " (" << type << " const&);";

//Added for IDREF case
if ((idref_ptr != std::string::npos) && (this->cppmode_ == CPPMODE::CPP03))
Expand Down Expand Up @@ -368,7 +368,7 @@ namespace
{
os << type << " const& " << id (name) << " () const;";
os << type << "& " << id (name) << " ();";
os << "void " << id (name) << " (" << type << " const& );";
os << "void " << id (name) << " (" << type << " const&);";

//Added for IDREF case
if ((idref_ptr != std::string::npos) && (this->cppmode_ == CPPMODE::CPP03))
Expand Down

0 comments on commit 199de9d

Please sign in to comment.