Skip to content

Commit

Permalink
make some EbmlElement inlines return constexpr objects
Browse files Browse the repository at this point in the history
Even though there's no constexpr constructor.
  • Loading branch information
robUx4 committed Feb 24, 2024
1 parent 7dfe003 commit 3ccbde5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ebml/EbmlElement.h
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ class EBML_DLL_API EbmlElement {

virtual EbmlId const &GetClassId() const {return ClassInfo.ClassId();}
virtual explicit operator const EbmlId &() const { return GetClassId(); }
const char *DebugName() const {return ClassInfo.GetName();}
const EbmlSemanticContext &Context() const {return ClassInfo.GetContext();}
constexpr const char *DebugName() const {return ClassInfo.GetName();}
constexpr const EbmlSemanticContext &Context() const {return ClassInfo.GetContext();}
virtual EbmlElement & CreateElement() const = 0;

/*!
Expand Down

0 comments on commit 3ccbde5

Please sign in to comment.