apply fixes to more headers

This commit is contained in:
Aaron Gokaslan
2022-09-01 12:28:45 -04:00
parent 4c6652f5b0
commit e3b01e10db
20 changed files with 37 additions and 53 deletions

View File

@@ -314,7 +314,7 @@ struct Object {
virtual bool IsSpecial() const { return false; }
Object() = default;
virtual ~Object() {}
virtual ~Object() = default;
//! Maps special IDs to another ID, where needed. Subclasses may override it (statically)
static const char *TranslateId(Asset & /*r*/, const char *id) { return id; }
@@ -666,7 +666,7 @@ struct Mesh : public Object {
std::vector<Primitive> primitives;
std::list<SExtension *> Extension; ///< List of extensions used in mesh.
Mesh() {}
Mesh() = default;
/// Destructor.
~Mesh() {
@@ -706,12 +706,12 @@ struct Node : public Object {
Ref<Node> parent; //!< This is not part of the glTF specification. Used as a helper.
Node() {}
Node() = default;
void Read(Value &obj, Asset &r);
};
struct Program : public Object {
Program() {}
Program() = default;
void Read(Value &obj, Asset &r);
};
@@ -830,7 +830,7 @@ struct Animation : public Object {
//! Base class for LazyDict that acts as an interface
class LazyDictBase {
public:
virtual ~LazyDictBase() {}
virtual ~LazyDictBase() = default;
virtual void AttachToDocument(Document &doc) = 0;
virtual void DetachFromDocument() = 0;