apply fixes to more headers
parent
4c6652f5b0
commit
e3b01e10db
|
@ -116,7 +116,7 @@ struct Material : public D3DS::Material {
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
~Material() {}
|
~Material() = default;
|
||||||
|
|
||||||
//! Contains all sub materials of this material
|
//! Contains all sub materials of this material
|
||||||
std::vector<Material> avSubMaterials;
|
std::vector<Material> avSubMaterials;
|
||||||
|
|
|
@ -65,8 +65,7 @@ namespace Blender {
|
||||||
struct TempArray {
|
struct TempArray {
|
||||||
typedef TCLASS< T*,std::allocator<T*> > mywrap;
|
typedef TCLASS< T*,std::allocator<T*> > mywrap;
|
||||||
|
|
||||||
TempArray() {
|
TempArray() = default;
|
||||||
}
|
|
||||||
|
|
||||||
~TempArray () {
|
~TempArray () {
|
||||||
for(T* elem : arr) {
|
for(T* elem : arr) {
|
||||||
|
|
|
@ -107,7 +107,7 @@ struct Node : public ChunkInfo
|
||||||
TYPE_MESH,TYPE_GROUP,TYPE_LIGHT,TYPE_CAMERA,TYPE_BONE
|
TYPE_MESH,TYPE_GROUP,TYPE_LIGHT,TYPE_CAMERA,TYPE_BONE
|
||||||
};
|
};
|
||||||
|
|
||||||
virtual ~Node() {}
|
virtual ~Node() = default;
|
||||||
Node(Type type) : type(type), unit_scale(1.f){}
|
Node(Type type) : type(type), unit_scale(1.f){}
|
||||||
|
|
||||||
Type type;
|
Type type;
|
||||||
|
|
|
@ -233,7 +233,7 @@ public:
|
||||||
Surface ambient, diffuse, specular, emissive, reflective, transparent, normal;
|
Surface ambient, diffuse, specular, emissive, reflective, transparent, normal;
|
||||||
Property shininess, transparency, index_refraction;
|
Property shininess, transparency, index_refraction;
|
||||||
|
|
||||||
Material() {}
|
Material() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::map<unsigned int, std::string> textures;
|
std::map<unsigned int, std::string> textures;
|
||||||
|
|
|
@ -344,8 +344,7 @@ protected:
|
||||||
public:
|
public:
|
||||||
typedef std::pair<IfcFloat, IfcFloat> ParamRange;
|
typedef std::pair<IfcFloat, IfcFloat> ParamRange;
|
||||||
|
|
||||||
virtual ~Curve() {}
|
virtual ~Curve() = default;
|
||||||
|
|
||||||
|
|
||||||
// check if a curve is closed
|
// check if a curve is closed
|
||||||
virtual bool IsClosed() const = 0;
|
virtual bool IsClosed() const = 0;
|
||||||
|
|
|
@ -56,7 +56,7 @@ class IQMImporter : public BaseImporter {
|
||||||
public:
|
public:
|
||||||
/// \brief Default constructor
|
/// \brief Default constructor
|
||||||
IQMImporter();
|
IQMImporter();
|
||||||
~IQMImporter() override {}
|
~IQMImporter() override = default;
|
||||||
|
|
||||||
/// \brief Returns whether the class can handle the format of the given file.
|
/// \brief Returns whether the class can handle the format of the given file.
|
||||||
/// \remark See BaseImporter::CanRead() for details.
|
/// \remark See BaseImporter::CanRead() for details.
|
||||||
|
|
|
@ -206,8 +206,7 @@ private:
|
||||||
*/
|
*/
|
||||||
struct SkyboxVertex
|
struct SkyboxVertex
|
||||||
{
|
{
|
||||||
SkyboxVertex()
|
SkyboxVertex() = default;
|
||||||
{}
|
|
||||||
|
|
||||||
//! Construction from single vertex components
|
//! Construction from single vertex components
|
||||||
SkyboxVertex(ai_real px, ai_real py, ai_real pz,
|
SkyboxVertex(ai_real px, ai_real py, ai_real pz,
|
||||||
|
|
|
@ -338,13 +338,7 @@ struct Face : public aiFace {
|
||||||
uint32_t type;
|
uint32_t type;
|
||||||
|
|
||||||
//! Assignment operator
|
//! Assignment operator
|
||||||
Face &operator=(const LWO::Face &f) {
|
Face &operator=(const LWO::Face &f) = default;
|
||||||
aiFace::operator=(f);
|
|
||||||
surfaceIndex = f.surfaceIndex;
|
|
||||||
smoothGroup = f.smoothGroup;
|
|
||||||
type = f.type;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
@ -354,7 +348,7 @@ struct VMapEntry {
|
||||||
explicit VMapEntry(unsigned int _dims) :
|
explicit VMapEntry(unsigned int _dims) :
|
||||||
dims(_dims) {}
|
dims(_dims) {}
|
||||||
|
|
||||||
virtual ~VMapEntry() {}
|
virtual ~VMapEntry() = default;
|
||||||
|
|
||||||
//! allocates memory for the vertex map
|
//! allocates memory for the vertex map
|
||||||
virtual void Allocate(unsigned int num) {
|
virtual void Allocate(unsigned int num) {
|
||||||
|
|
|
@ -69,7 +69,7 @@ namespace LWS {
|
||||||
*/
|
*/
|
||||||
class Element {
|
class Element {
|
||||||
public:
|
public:
|
||||||
Element() {}
|
Element() = default;
|
||||||
|
|
||||||
// first: name, second: rest
|
// first: name, second: rest
|
||||||
std::string tokens[2];
|
std::string tokens[2];
|
||||||
|
|
|
@ -88,7 +88,7 @@ namespace pmx
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void Read(std::istream *stream, PmxSetting *setting) = 0;
|
virtual void Read(std::istream *stream, PmxSetting *setting) = 0;
|
||||||
virtual ~PmxVertexSkinning() {}
|
virtual ~PmxVertexSkinning() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
class PmxVertexSkinningBDEF1 : public PmxVertexSkinning
|
class PmxVertexSkinningBDEF1 : public PmxVertexSkinning
|
||||||
|
|
|
@ -241,7 +241,7 @@ public:
|
||||||
|
|
||||||
/// \fn ~X3DExporter()
|
/// \fn ~X3DExporter()
|
||||||
/// Default destructor.
|
/// Default destructor.
|
||||||
~X3DExporter() {}
|
~X3DExporter() = default;
|
||||||
|
|
||||||
}; // class X3DExporter
|
}; // class X3DExporter
|
||||||
|
|
||||||
|
|
|
@ -270,7 +270,7 @@ public:
|
||||||
void Clear();
|
void Clear();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
X3DNodeElementBase *MACRO_USE_CHECKANDAPPLY(XmlNode &node, std::string pDEF, std::string pUSE, X3DElemType pType, X3DNodeElementBase *pNE);
|
X3DNodeElementBase *MACRO_USE_CHECKANDAPPLY(XmlNode &node, const std::string &pDEF, const std::string &pUSE, X3DElemType pType, X3DNodeElementBase *pNE);
|
||||||
bool isNodeEmpty(XmlNode &node);
|
bool isNodeEmpty(XmlNode &node);
|
||||||
void checkNodeMustBeEmpty(XmlNode &node);
|
void checkNodeMustBeEmpty(XmlNode &node);
|
||||||
void skipUnsupportedNode(const std::string &pParentNodeName, XmlNode &node);
|
void skipUnsupportedNode(const std::string &pParentNodeName, XmlNode &node);
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace Assimp {
|
||||||
/// \param [in] pUSE - string holding "USE" value.
|
/// \param [in] pUSE - string holding "USE" value.
|
||||||
/// \param [in] pType - type of element to find.
|
/// \param [in] pType - type of element to find.
|
||||||
/// \param [out] pNE - pointer to found node element.
|
/// \param [out] pNE - pointer to found node element.
|
||||||
inline X3DNodeElementBase *X3DImporter::MACRO_USE_CHECKANDAPPLY(XmlNode &node, std::string pDEF, std::string pUSE, X3DElemType pType, X3DNodeElementBase *pNE) {
|
inline X3DNodeElementBase *X3DImporter::MACRO_USE_CHECKANDAPPLY(XmlNode &node, const std::string &pDEF, const std::string &pUSE, X3DElemType pType, X3DNodeElementBase *pNE) {
|
||||||
checkNodeMustBeEmpty(node);
|
checkNodeMustBeEmpty(node);
|
||||||
if (!pDEF.empty())
|
if (!pDEF.empty())
|
||||||
Assimp::Throw_DEF_And_USE(node.name());
|
Assimp::Throw_DEF_And_USE(node.name());
|
||||||
|
|
|
@ -314,7 +314,7 @@ struct Object {
|
||||||
virtual bool IsSpecial() const { return false; }
|
virtual bool IsSpecial() const { return false; }
|
||||||
|
|
||||||
Object() = default;
|
Object() = default;
|
||||||
virtual ~Object() {}
|
virtual ~Object() = default;
|
||||||
|
|
||||||
//! Maps special IDs to another ID, where needed. Subclasses may override it (statically)
|
//! Maps special IDs to another ID, where needed. Subclasses may override it (statically)
|
||||||
static const char *TranslateId(Asset & /*r*/, const char *id) { return id; }
|
static const char *TranslateId(Asset & /*r*/, const char *id) { return id; }
|
||||||
|
@ -666,7 +666,7 @@ struct Mesh : public Object {
|
||||||
std::vector<Primitive> primitives;
|
std::vector<Primitive> primitives;
|
||||||
std::list<SExtension *> Extension; ///< List of extensions used in mesh.
|
std::list<SExtension *> Extension; ///< List of extensions used in mesh.
|
||||||
|
|
||||||
Mesh() {}
|
Mesh() = default;
|
||||||
|
|
||||||
/// Destructor.
|
/// Destructor.
|
||||||
~Mesh() {
|
~Mesh() {
|
||||||
|
@ -706,12 +706,12 @@ struct Node : public Object {
|
||||||
|
|
||||||
Ref<Node> parent; //!< This is not part of the glTF specification. Used as a helper.
|
Ref<Node> parent; //!< This is not part of the glTF specification. Used as a helper.
|
||||||
|
|
||||||
Node() {}
|
Node() = default;
|
||||||
void Read(Value &obj, Asset &r);
|
void Read(Value &obj, Asset &r);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Program : public Object {
|
struct Program : public Object {
|
||||||
Program() {}
|
Program() = default;
|
||||||
void Read(Value &obj, Asset &r);
|
void Read(Value &obj, Asset &r);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -830,7 +830,7 @@ struct Animation : public Object {
|
||||||
//! Base class for LazyDict that acts as an interface
|
//! Base class for LazyDict that acts as an interface
|
||||||
class LazyDictBase {
|
class LazyDictBase {
|
||||||
public:
|
public:
|
||||||
virtual ~LazyDictBase() {}
|
virtual ~LazyDictBase() = default;
|
||||||
|
|
||||||
virtual void AttachToDocument(Document &doc) = 0;
|
virtual void AttachToDocument(Document &doc) = 0;
|
||||||
virtual void DetachFromDocument() = 0;
|
virtual void DetachFromDocument() = 0;
|
||||||
|
|
|
@ -391,7 +391,7 @@ struct Object {
|
||||||
//! Objects marked as special are not exported (used to emulate the binary body buffer)
|
//! Objects marked as special are not exported (used to emulate the binary body buffer)
|
||||||
virtual bool IsSpecial() const { return false; }
|
virtual bool IsSpecial() const { return false; }
|
||||||
|
|
||||||
virtual ~Object() {}
|
virtual ~Object() = default;
|
||||||
|
|
||||||
//! Maps special IDs to another ID, where needed. Subclasses may override it (statically)
|
//! Maps special IDs to another ID, where needed. Subclasses may override it (statically)
|
||||||
static const char *TranslateId(Asset & /*r*/, const char *id) { return id; }
|
static const char *TranslateId(Asset & /*r*/, const char *id) { return id; }
|
||||||
|
@ -613,7 +613,7 @@ struct Accessor : public Object {
|
||||||
return Indexer(*this);
|
return Indexer(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
Accessor() {}
|
Accessor() = default;
|
||||||
void Read(Value &obj, Asset &r);
|
void Read(Value &obj, Asset &r);
|
||||||
|
|
||||||
//sparse
|
//sparse
|
||||||
|
@ -681,7 +681,7 @@ struct Light : public Object {
|
||||||
float innerConeAngle;
|
float innerConeAngle;
|
||||||
float outerConeAngle;
|
float outerConeAngle;
|
||||||
|
|
||||||
Light() {}
|
Light() = default;
|
||||||
void Read(Value &obj, Asset &r);
|
void Read(Value &obj, Asset &r);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -877,7 +877,7 @@ struct Mesh : public Object {
|
||||||
std::vector<float> weights;
|
std::vector<float> weights;
|
||||||
std::vector<std::string> targetNames;
|
std::vector<std::string> targetNames;
|
||||||
|
|
||||||
Mesh() {}
|
Mesh() = default;
|
||||||
|
|
||||||
/// Get mesh data from JSON-object and place them to root asset.
|
/// Get mesh data from JSON-object and place them to root asset.
|
||||||
/// \param [in] pJSON_Object - reference to pJSON-object from which data are read.
|
/// \param [in] pJSON_Object - reference to pJSON-object from which data are read.
|
||||||
|
@ -903,12 +903,12 @@ struct Node : public Object {
|
||||||
|
|
||||||
Ref<Node> parent; //!< This is not part of the glTF specification. Used as a helper.
|
Ref<Node> parent; //!< This is not part of the glTF specification. Used as a helper.
|
||||||
|
|
||||||
Node() {}
|
Node() = default;
|
||||||
void Read(Value &obj, Asset &r);
|
void Read(Value &obj, Asset &r);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Program : public Object {
|
struct Program : public Object {
|
||||||
Program() {}
|
Program() = default;
|
||||||
void Read(Value &obj, Asset &r);
|
void Read(Value &obj, Asset &r);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -927,12 +927,12 @@ struct Scene : public Object {
|
||||||
std::string name;
|
std::string name;
|
||||||
std::vector<Ref<Node>> nodes;
|
std::vector<Ref<Node>> nodes;
|
||||||
|
|
||||||
Scene() {}
|
Scene() = default;
|
||||||
void Read(Value &obj, Asset &r);
|
void Read(Value &obj, Asset &r);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Shader : public Object {
|
struct Shader : public Object {
|
||||||
Shader() {}
|
Shader() = default;
|
||||||
void Read(Value &obj, Asset &r);
|
void Read(Value &obj, Asset &r);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -942,7 +942,7 @@ struct Skin : public Object {
|
||||||
std::vector<Ref<Node>> jointNames; //!< Joint names of the joints (nodes with a jointName property) in this skin.
|
std::vector<Ref<Node>> jointNames; //!< Joint names of the joints (nodes with a jointName property) in this skin.
|
||||||
std::string name; //!< The user-defined name of this object.
|
std::string name; //!< The user-defined name of this object.
|
||||||
|
|
||||||
Skin() {}
|
Skin() = default;
|
||||||
void Read(Value &obj, Asset &r);
|
void Read(Value &obj, Asset &r);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -957,7 +957,7 @@ struct Texture : public Object {
|
||||||
//TextureTarget target; //!< The target that the WebGL texture should be bound to. (default: TextureTarget_TEXTURE_2D)
|
//TextureTarget target; //!< The target that the WebGL texture should be bound to. (default: TextureTarget_TEXTURE_2D)
|
||||||
//TextureType type; //!< Texel datatype. (default: TextureType_UNSIGNED_BYTE)
|
//TextureType type; //!< Texel datatype. (default: TextureType_UNSIGNED_BYTE)
|
||||||
|
|
||||||
Texture() {}
|
Texture() = default;
|
||||||
void Read(Value &obj, Asset &r);
|
void Read(Value &obj, Asset &r);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -990,14 +990,14 @@ struct Animation : public Object {
|
||||||
std::vector<Sampler> samplers; //!< All the key-frame data for this animation.
|
std::vector<Sampler> samplers; //!< All the key-frame data for this animation.
|
||||||
std::vector<Channel> channels; //!< Data to connect nodes to key-frames.
|
std::vector<Channel> channels; //!< Data to connect nodes to key-frames.
|
||||||
|
|
||||||
Animation() {}
|
Animation() = default;
|
||||||
void Read(Value &obj, Asset &r);
|
void Read(Value &obj, Asset &r);
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Base class for LazyDict that acts as an interface
|
//! Base class for LazyDict that acts as an interface
|
||||||
class LazyDictBase {
|
class LazyDictBase {
|
||||||
public:
|
public:
|
||||||
virtual ~LazyDictBase() {}
|
virtual ~LazyDictBase() = default;
|
||||||
|
|
||||||
virtual void AttachToDocument(Document &doc) = 0;
|
virtual void AttachToDocument(Document &doc) = 0;
|
||||||
virtual void DetachFromDocument() = 0;
|
virtual void DetachFromDocument() = 0;
|
||||||
|
|
|
@ -63,7 +63,7 @@ class Importer;
|
||||||
class SharedPostProcessInfo {
|
class SharedPostProcessInfo {
|
||||||
public:
|
public:
|
||||||
struct Base {
|
struct Base {
|
||||||
virtual ~Base() {}
|
virtual ~Base() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
//! Represents data that is allocated on the heap, thus needs to be deleted
|
//! Represents data that is allocated on the heap, thus needs to be deleted
|
||||||
|
@ -84,7 +84,7 @@ public:
|
||||||
explicit TStaticData(T in) :
|
explicit TStaticData(T in) :
|
||||||
data(in) {}
|
data(in) {}
|
||||||
|
|
||||||
~TStaticData() {}
|
~TStaticData() = default;
|
||||||
|
|
||||||
T data;
|
T data;
|
||||||
};
|
};
|
||||||
|
|
|
@ -134,9 +134,7 @@ IOStream::IOStream() AI_NO_EXCEPT {
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------
|
||||||
AI_FORCE_INLINE
|
AI_FORCE_INLINE
|
||||||
IOStream::~IOStream() {
|
IOStream::~IOStream() = default;
|
||||||
// empty
|
|
||||||
}
|
|
||||||
// ----------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------
|
||||||
|
|
||||||
} //!namespace Assimp
|
} //!namespace Assimp
|
||||||
|
|
|
@ -263,9 +263,7 @@ inline Logger::Logger() AI_NO_EXCEPT :
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------
|
||||||
inline Logger::~Logger() {
|
inline Logger::~Logger() = default;
|
||||||
// empty
|
|
||||||
}
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------
|
||||||
inline Logger::Logger(LogSeverity severity) :
|
inline Logger::Logger(LogSeverity severity) :
|
||||||
|
|
|
@ -122,10 +122,7 @@ public:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inline
|
inline Subdivider::~Subdivider() = default;
|
||||||
Subdivider::~Subdivider() {
|
|
||||||
// empty
|
|
||||||
}
|
|
||||||
|
|
||||||
} // end namespace Assimp
|
} // end namespace Assimp
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ public:
|
||||||
|
|
||||||
virtual void write(const char* message) {
|
virtual void write(const char* message) {
|
||||||
if ( nullptr != message ) {
|
if ( nullptr != message ) {
|
||||||
m_messages.push_back( std::string( message ) );
|
m_messages.emplace_back(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue