apply fixes to more headers
parent
4c6652f5b0
commit
e3b01e10db
|
@ -116,7 +116,7 @@ struct Material : public D3DS::Material {
|
|||
return *this;
|
||||
}
|
||||
|
||||
~Material() {}
|
||||
~Material() = default;
|
||||
|
||||
//! Contains all sub materials of this material
|
||||
std::vector<Material> avSubMaterials;
|
||||
|
|
|
@ -65,8 +65,7 @@ namespace Blender {
|
|||
struct TempArray {
|
||||
typedef TCLASS< T*,std::allocator<T*> > mywrap;
|
||||
|
||||
TempArray() {
|
||||
}
|
||||
TempArray() = default;
|
||||
|
||||
~TempArray () {
|
||||
for(T* elem : arr) {
|
||||
|
|
|
@ -107,7 +107,7 @@ struct Node : public ChunkInfo
|
|||
TYPE_MESH,TYPE_GROUP,TYPE_LIGHT,TYPE_CAMERA,TYPE_BONE
|
||||
};
|
||||
|
||||
virtual ~Node() {}
|
||||
virtual ~Node() = default;
|
||||
Node(Type type) : type(type), unit_scale(1.f){}
|
||||
|
||||
Type type;
|
||||
|
|
|
@ -233,7 +233,7 @@ public:
|
|||
Surface ambient, diffuse, specular, emissive, reflective, transparent, normal;
|
||||
Property shininess, transparency, index_refraction;
|
||||
|
||||
Material() {}
|
||||
Material() = default;
|
||||
};
|
||||
|
||||
std::map<unsigned int, std::string> textures;
|
||||
|
|
|
@ -344,8 +344,7 @@ protected:
|
|||
public:
|
||||
typedef std::pair<IfcFloat, IfcFloat> ParamRange;
|
||||
|
||||
virtual ~Curve() {}
|
||||
|
||||
virtual ~Curve() = default;
|
||||
|
||||
// check if a curve is closed
|
||||
virtual bool IsClosed() const = 0;
|
||||
|
|
|
@ -56,7 +56,7 @@ class IQMImporter : public BaseImporter {
|
|||
public:
|
||||
/// \brief Default constructor
|
||||
IQMImporter();
|
||||
~IQMImporter() override {}
|
||||
~IQMImporter() override = default;
|
||||
|
||||
/// \brief Returns whether the class can handle the format of the given file.
|
||||
/// \remark See BaseImporter::CanRead() for details.
|
||||
|
|
|
@ -206,8 +206,7 @@ private:
|
|||
*/
|
||||
struct SkyboxVertex
|
||||
{
|
||||
SkyboxVertex()
|
||||
{}
|
||||
SkyboxVertex() = default;
|
||||
|
||||
//! Construction from single vertex components
|
||||
SkyboxVertex(ai_real px, ai_real py, ai_real pz,
|
||||
|
|
|
@ -338,13 +338,7 @@ struct Face : public aiFace {
|
|||
uint32_t type;
|
||||
|
||||
//! Assignment operator
|
||||
Face &operator=(const LWO::Face &f) {
|
||||
aiFace::operator=(f);
|
||||
surfaceIndex = f.surfaceIndex;
|
||||
smoothGroup = f.smoothGroup;
|
||||
type = f.type;
|
||||
return *this;
|
||||
}
|
||||
Face &operator=(const LWO::Face &f) = default;
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
@ -354,7 +348,7 @@ struct VMapEntry {
|
|||
explicit VMapEntry(unsigned int _dims) :
|
||||
dims(_dims) {}
|
||||
|
||||
virtual ~VMapEntry() {}
|
||||
virtual ~VMapEntry() = default;
|
||||
|
||||
//! allocates memory for the vertex map
|
||||
virtual void Allocate(unsigned int num) {
|
||||
|
|
|
@ -69,7 +69,7 @@ namespace LWS {
|
|||
*/
|
||||
class Element {
|
||||
public:
|
||||
Element() {}
|
||||
Element() = default;
|
||||
|
||||
// first: name, second: rest
|
||||
std::string tokens[2];
|
||||
|
|
|
@ -88,7 +88,7 @@ namespace pmx
|
|||
{
|
||||
public:
|
||||
virtual void Read(std::istream *stream, PmxSetting *setting) = 0;
|
||||
virtual ~PmxVertexSkinning() {}
|
||||
virtual ~PmxVertexSkinning() = default;
|
||||
};
|
||||
|
||||
class PmxVertexSkinningBDEF1 : public PmxVertexSkinning
|
||||
|
|
|
@ -241,7 +241,7 @@ public:
|
|||
|
||||
/// \fn ~X3DExporter()
|
||||
/// Default destructor.
|
||||
~X3DExporter() {}
|
||||
~X3DExporter() = default;
|
||||
|
||||
}; // class X3DExporter
|
||||
|
||||
|
|
|
@ -270,7 +270,7 @@ public:
|
|||
void Clear();
|
||||
|
||||
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);
|
||||
void checkNodeMustBeEmpty(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] pType - type of element to find.
|
||||
/// \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);
|
||||
if (!pDEF.empty())
|
||||
Assimp::Throw_DEF_And_USE(node.name());
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -391,7 +391,7 @@ struct Object {
|
|||
//! Objects marked as special are not exported (used to emulate the binary body buffer)
|
||||
virtual bool IsSpecial() const { return false; }
|
||||
|
||||
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; }
|
||||
|
@ -613,7 +613,7 @@ struct Accessor : public Object {
|
|||
return Indexer(*this);
|
||||
}
|
||||
|
||||
Accessor() {}
|
||||
Accessor() = default;
|
||||
void Read(Value &obj, Asset &r);
|
||||
|
||||
//sparse
|
||||
|
@ -681,7 +681,7 @@ struct Light : public Object {
|
|||
float innerConeAngle;
|
||||
float outerConeAngle;
|
||||
|
||||
Light() {}
|
||||
Light() = default;
|
||||
void Read(Value &obj, Asset &r);
|
||||
};
|
||||
|
||||
|
@ -877,7 +877,7 @@ struct Mesh : public Object {
|
|||
std::vector<float> weights;
|
||||
std::vector<std::string> targetNames;
|
||||
|
||||
Mesh() {}
|
||||
Mesh() = default;
|
||||
|
||||
/// 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.
|
||||
|
@ -903,12 +903,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);
|
||||
};
|
||||
|
||||
|
@ -927,12 +927,12 @@ struct Scene : public Object {
|
|||
std::string name;
|
||||
std::vector<Ref<Node>> nodes;
|
||||
|
||||
Scene() {}
|
||||
Scene() = default;
|
||||
void Read(Value &obj, Asset &r);
|
||||
};
|
||||
|
||||
struct Shader : public Object {
|
||||
Shader() {}
|
||||
Shader() = default;
|
||||
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::string name; //!< The user-defined name of this object.
|
||||
|
||||
Skin() {}
|
||||
Skin() = default;
|
||||
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)
|
||||
//TextureType type; //!< Texel datatype. (default: TextureType_UNSIGNED_BYTE)
|
||||
|
||||
Texture() {}
|
||||
Texture() = default;
|
||||
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<Channel> channels; //!< Data to connect nodes to key-frames.
|
||||
|
||||
Animation() {}
|
||||
Animation() = default;
|
||||
void Read(Value &obj, Asset &r);
|
||||
};
|
||||
|
||||
//! 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;
|
||||
|
|
|
@ -63,7 +63,7 @@ class Importer;
|
|||
class SharedPostProcessInfo {
|
||||
public:
|
||||
struct Base {
|
||||
virtual ~Base() {}
|
||||
virtual ~Base() = default;
|
||||
};
|
||||
|
||||
//! Represents data that is allocated on the heap, thus needs to be deleted
|
||||
|
@ -84,7 +84,7 @@ public:
|
|||
explicit TStaticData(T in) :
|
||||
data(in) {}
|
||||
|
||||
~TStaticData() {}
|
||||
~TStaticData() = default;
|
||||
|
||||
T data;
|
||||
};
|
||||
|
|
|
@ -134,9 +134,7 @@ IOStream::IOStream() AI_NO_EXCEPT {
|
|||
|
||||
// ----------------------------------------------------------------------------------
|
||||
AI_FORCE_INLINE
|
||||
IOStream::~IOStream() {
|
||||
// empty
|
||||
}
|
||||
IOStream::~IOStream() = default;
|
||||
// ----------------------------------------------------------------------------------
|
||||
|
||||
} //!namespace Assimp
|
||||
|
|
|
@ -263,9 +263,7 @@ inline Logger::Logger() AI_NO_EXCEPT :
|
|||
}
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
inline Logger::~Logger() {
|
||||
// empty
|
||||
}
|
||||
inline Logger::~Logger() = default;
|
||||
|
||||
// ----------------------------------------------------------------------------------
|
||||
inline Logger::Logger(LogSeverity severity) :
|
||||
|
|
|
@ -122,10 +122,7 @@ public:
|
|||
|
||||
};
|
||||
|
||||
inline
|
||||
Subdivider::~Subdivider() {
|
||||
// empty
|
||||
}
|
||||
inline Subdivider::~Subdivider() = default;
|
||||
|
||||
} // end namespace Assimp
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ public:
|
|||
|
||||
virtual void write(const char* message) {
|
||||
if ( nullptr != message ) {
|
||||
m_messages.push_back( std::string( message ) );
|
||||
m_messages.emplace_back(message);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue