Skip to content

Commit

Permalink
EXPERIMENTAL: Fix extra trailing whitespace after namespaces in `gene…
Browse files Browse the repository at this point in the history
…rated` headers
  • Loading branch information
WSSDude committed Jan 18, 2025
1 parent 1533a6e commit 2fbfdb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/RED4ext/Dump/Reflection-inl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ RED4EXT_INLINE void EnumFileDescriptor::EmitFile(std::filesystem::path aOutPath,
if (nsIndex != std::string::npos)
{
auto ns = nameQualified.substr(0, nsIndex - 1);
o << "namespace " << ns << " { " << std::endl;
o << "namespace " << ns << " {" << std::endl;
o << "enum class " << name;
}
else
Expand Down Expand Up @@ -696,7 +696,7 @@ RED4EXT_INLINE void BitfieldFileDescriptor::EmitFile(std::filesystem::path aOutP
if (nsIndex != std::string::npos)
{
auto ns = nameQualified.substr(0, nsIndex - 1);
o << "namespace " << ns << " { " << std::endl;
o << "namespace " << ns << " {" << std::endl;
o << "struct " << name;
}
else
Expand Down

0 comments on commit 2fbfdb0

Please sign in to comment.