Skip to content

Commit

Permalink
spectool: use the namespace directly in libmatroska
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Sep 18, 2022
1 parent 88334db commit 4aa04ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions spectool/schema_2_kaxsematic_cpp.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#include "matroska/KaxBlockData.h"
#include "matroska/KaxCuesData.h"

START_LIBMATROSKA_NAMESPACE
namespace libmatroska {
<xsl:for-each select="ebml:element[not(starts-with(@path,'\EBML\'))]">
<!-- sorting messes the detection of the previous element MATROSKA_VERSION state -->
<!-- Maybe for each output we create we also create a counterpart call to check if the new MATROSKA_VERSION state that should be used -->
Expand All @@ -71,7 +71,7 @@ START_LIBMATROSKA_NAMESPACE
<!-- <xsl:apply-templates select="ebml:element">
<xsl:sort select="translate(@path, '\+', '\')" />
</xsl:apply-templates> -->
END_LIBMATROSKA_NAMESPACE
} // namespace libmatroska
</xsl:template>
<xsl:template match="ebml:element">
<xsl:variable name="plainPath">
Expand Down
6 changes: 3 additions & 3 deletions spectool/schema_2_kaxsematic_h.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
#include "ebml/EbmlMaster.h"
#include "matroska/KaxDefines.h"

using namespace LIBEBML_NAMESPACE;
using namespace libebml;

START_LIBMATROSKA_NAMESPACE
namespace libmatroska {
<xsl:for-each select="ebml:element[not(starts-with(@path,'\EBML\'))]">
<!-- <xsl:sort select="translate(@path, '\+', '\')" /> -->
<xsl:apply-templates select="."/>
Expand All @@ -70,7 +70,7 @@ START_LIBMATROSKA_NAMESPACE
<!-- Output the enums after the IDs -->
<xsl:call-template name="outputAllEnums"/>
</xsl:for-each>
END_LIBMATROSKA_NAMESPACE
} // namespace libmatroska

#endif // LIBMATROSKA_SEMANTIC_H
</xsl:template>
Expand Down

0 comments on commit 4aa04ce

Please sign in to comment.