Преглед изворни кода

fbx: gcc 4.6 compile fixes

acgessler пре 13 година
родитељ
комит
e56b39ecaf
3 измењених фајлова са 3 додато и 4 уклоњено
  1. 1 1
      code/FBXConverter.cpp
  2. 1 1
      code/FBXProperties.h
  3. 1 2
      code/FBXUtil.h

+ 1 - 1
code/FBXConverter.cpp

@@ -222,7 +222,7 @@ private:
 
 
 			const MeshGeometry* const mesh = dynamic_cast<const MeshGeometry*>(geo);
 			const MeshGeometry* const mesh = dynamic_cast<const MeshGeometry*>(geo);
 			if(mesh) {
 			if(mesh) {
-				std::vector<unsigned int>& indices = ConvertMesh(*mesh, model);
+				const std::vector<unsigned int>& indices = ConvertMesh(*mesh, model);
 				std::copy(indices.begin(),indices.end(),std::back_inserter(meshes) );
 				std::copy(indices.begin(),indices.end(),std::back_inserter(meshes) );
 			}
 			}
 			else {
 			else {

+ 1 - 1
code/FBXProperties.h

@@ -143,7 +143,7 @@ inline T PropertyGet(const PropertyTable& in, const std::string& name,
 	const T& defaultValue, 
 	const T& defaultValue, 
 	bool ignoreTemplate = false)
 	bool ignoreTemplate = false)
 {
 {
-	const Property* const prop = PropertyGet(in,name);
+	const Property* const prop = in.Get(name);
 	if(!prop) {
 	if(!prop) {
 		return defaultValue;
 		return defaultValue;
 	}
 	}

+ 1 - 2
code/FBXUtil.h

@@ -46,12 +46,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 
 #include <string>
 #include <string>
 #include "FBXCompileConfig.h"
 #include "FBXCompileConfig.h"
+#include "FBXTokenizer.h"
 
 
 namespace Assimp {
 namespace Assimp {
 namespace FBX {
 namespace FBX {
 
 
-	class Token;
-	enum TokenType;
 
 
 namespace Util {
 namespace Util {