diff --git a/code/ASEParser.h b/code/ASEParser.h index 6a3e56e71..b4eab6e86 100644 --- a/code/ASEParser.h +++ b/code/ASEParser.h @@ -44,9 +44,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define AI_ASEFILEHELPER_H_INC // STL/CRT headers -#include -#include -#include +//#include +//#include +//#include // public ASSIMP headers #include "../include/assimp/types.h" diff --git a/code/BlenderModifier.h b/code/BlenderModifier.h index c9b62692b..1d176756e 100644 --- a/code/BlenderModifier.h +++ b/code/BlenderModifier.h @@ -46,8 +46,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "BlenderIntermediate.h" #include "TinyFormatter.h" + namespace Assimp { - namespace Blender { +namespace Blender { // ------------------------------------------------------------------------------------------- /** Dummy base class for all blender modifiers. Modifiers are reused between imports, so @@ -56,8 +57,8 @@ namespace Assimp { class BlenderModifier { public: - virtual ~BlenderModifier() { + // empty } public: diff --git a/code/BlenderScene.h b/code/BlenderScene.h index 0af1f3912..c7d5f7eb7 100644 --- a/code/BlenderScene.h +++ b/code/BlenderScene.h @@ -47,7 +47,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "BlenderDNA.h" namespace Assimp { - namespace Blender { +namespace Blender { // Minor parts of this file are extracts from blender data structures, // declared in the ./source/blender/makesdna directory. diff --git a/code/BlenderSceneGen.h b/code/BlenderSceneGen.h index fd7aeed0b..73eb1f927 100644 --- a/code/BlenderSceneGen.h +++ b/code/BlenderSceneGen.h @@ -48,8 +48,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "BlenderScene.h" namespace Assimp { - namespace Blender { - +namespace Blender { template <> void Structure :: Convert ( Object& dest, diff --git a/code/BlenderTessellator.h b/code/BlenderTessellator.h index d3e675e99..530bd2c3e 100644 --- a/code/BlenderTessellator.h +++ b/code/BlenderTessellator.h @@ -2,7 +2,7 @@ Open Asset Import Library (assimp) ---------------------------------------------------------------------- -Copyright (c) 2006-2013, assimp team +Copyright (c) 2006-2016, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, diff --git a/code/FBXConverter.h b/code/FBXConverter.h index 2e38c3a8a..a69c05e41 100644 --- a/code/FBXConverter.h +++ b/code/FBXConverter.h @@ -49,7 +49,7 @@ struct aiScene; namespace Assimp { namespace FBX { - class Document; +class Document; /** Convert a FBX #Document to #aiScene diff --git a/code/FBXDocument.h b/code/FBXDocument.h index 994797d74..f8e959648 100644 --- a/code/FBXDocument.h +++ b/code/FBXDocument.h @@ -44,16 +44,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef INCLUDED_AI_FBX_DOCUMENT_H #define INCLUDED_AI_FBX_DOCUMENT_H -#include -#include -#include -#include #include -#include -#include "../include/assimp/ai_assert.h" -#include "../include/assimp/vector3.h" -#include "../include/assimp/vector2.h" -#include "../include/assimp/color4.h" #include "../include/assimp/mesh.h" #include "FBXProperties.h" #include "FBXParser.h" @@ -179,7 +170,7 @@ class NodeAttribute : public Object public: NodeAttribute(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~NodeAttribute(); + virtual ~NodeAttribute(); public: @@ -200,7 +191,7 @@ class CameraSwitcher : public NodeAttribute public: CameraSwitcher(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~CameraSwitcher(); + virtual ~CameraSwitcher(); public: @@ -251,7 +242,7 @@ class Camera : public NodeAttribute public: Camera(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~Camera(); + virtual ~Camera(); public: @@ -280,7 +271,7 @@ class Null : public NodeAttribute public: Null(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~Null(); + virtual ~Null(); }; @@ -290,7 +281,7 @@ class LimbNode : public NodeAttribute public: LimbNode(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~LimbNode(); + virtual ~LimbNode(); }; @@ -298,9 +289,8 @@ public: class Light : public NodeAttribute { public: - Light(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~Light(); + virtual ~Light(); public: @@ -370,7 +360,7 @@ class Model : public Object public: Model(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~Model(); + virtual ~Model(); public: @@ -535,7 +525,7 @@ class Texture : public Object public: Texture(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~Texture(); + virtual ~Texture(); public: @@ -599,7 +589,7 @@ class LayeredTexture : public Object public: LayeredTexture(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~LayeredTexture(); + virtual ~LayeredTexture(); //Can only be called after construction of the layered texture object due to construction flag. void fillTexture(const Document& doc); @@ -668,7 +658,7 @@ class Video : public Object public: Video(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~Video(); + virtual ~Video(); public: @@ -721,7 +711,7 @@ class Material : public Object public: Material(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~Material(); + virtual ~Material(); public: @@ -763,7 +753,7 @@ class Geometry : public Object public: Geometry(uint64_t id, const Element& element, const std::string& name, const Document& doc); - ~Geometry(); + virtual ~Geometry(); public: @@ -788,7 +778,7 @@ class MeshGeometry : public Geometry public: MeshGeometry(uint64_t id, const Element& element, const std::string& name, const Document& doc); - ~MeshGeometry(); + virtual ~MeshGeometry(); public: @@ -891,8 +881,6 @@ public: return static_cast(std::distance(facesVertexStartIndices.begin(), it - 1)); } -public: - private: void ReadLayer(const Scope& layer); @@ -952,7 +940,7 @@ class AnimationCurve : public Object public: AnimationCurve(uint64_t id, const Element& element, const std::string& name, const Document& doc); - ~AnimationCurve(); + virtual ~AnimationCurve(); public: @@ -995,13 +983,13 @@ class AnimationCurveNode : public Object { public: - /* the optional whitelist specifies a list of property names for which the caller + /* the optional white list specifies a list of property names for which the caller wants animations for. If the curve node does not match one of these, std::range_error will be thrown. */ AnimationCurveNode(uint64_t id, const Element& element, const std::string& name, const Document& doc, const char* const * target_prop_whitelist = NULL, size_t whitelist_size = 0); - ~AnimationCurveNode(); + virtual ~AnimationCurveNode(); public: @@ -1053,7 +1041,7 @@ public: AnimationLayer(uint64_t id, const Element& element, const std::string& name, const Document& doc); - ~AnimationLayer(); + virtual ~AnimationLayer(); public: @@ -1062,7 +1050,7 @@ public: return *props.get(); } - /* the optional whitelist specifies a list of property names for which the caller + /* the optional white list specifies a list of property names for which the caller wants animations for. Curves not matching this list will not be added to the animation layer. */ AnimationCurveNodeList Nodes(const char* const * target_prop_whitelist = NULL, size_t whitelist_size = 0) const; @@ -1083,7 +1071,7 @@ class AnimationStack : public Object public: AnimationStack(uint64_t id, const Element& element, const std::string& name, const Document& doc); - ~AnimationStack(); + virtual ~AnimationStack(); public: @@ -1117,7 +1105,7 @@ class Deformer : public Object public: Deformer(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~Deformer(); + virtual ~Deformer(); public: @@ -1191,7 +1179,7 @@ class Skin : public Deformer public: Skin(uint64_t id, const Element& element, const Document& doc, const std::string& name); - ~Skin(); + virtual ~Skin(); public: diff --git a/code/FBXParser.h b/code/FBXParser.h index e72a92611..f0f0db9b6 100644 --- a/code/FBXParser.h +++ b/code/FBXParser.h @@ -44,13 +44,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef INCLUDED_AI_FBX_PARSER_H #define INCLUDED_AI_FBX_PARSER_H -#include -#include -#include -#include -#include - -#include #include #include "LogAux.h" diff --git a/code/FBXProperties.h b/code/FBXProperties.h index 0346e9b31..fbaa229a1 100644 --- a/code/FBXProperties.h +++ b/code/FBXProperties.h @@ -45,7 +45,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define INCLUDED_AI_FBX_PROPERTIES_H #include -#include #include "FBXCompileConfig.h" #include