From 04c77029e8adaa4d73b58eb5e27b599855bc67ad Mon Sep 17 00:00:00 2001 From: Alexander Gessler Date: Wed, 4 Jul 2012 17:06:55 +0200 Subject: [PATCH] - fbx: fix boost build errors (was building with BOOST_WORKAROUND for a while). --- code/FBXDocument.cpp | 6 ++++-- code/FBXProperties.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/code/FBXDocument.cpp b/code/FBXDocument.cpp index cd27acbab..4398e01f3 100644 --- a/code/FBXDocument.cpp +++ b/code/FBXDocument.cpp @@ -339,7 +339,9 @@ boost::shared_ptr GetPropertyTable(const Document& doc, const Scope& sc) { const Element* const Properties70 = sc["Properties70"]; - boost::shared_ptr templateProps = boost::shared_ptr(NULL); + boost::shared_ptr templateProps = boost::shared_ptr( + static_cast(NULL)); + if(templateName.length()) { PropertyTemplateMap::const_iterator it = doc.Templates().find(templateName); if(it != doc.Templates().end()) { @@ -566,7 +568,7 @@ void Document::ReadPropertyTemplates() const Element* Properties70 = (*sc)["Properties70"]; if(Properties70) { boost::shared_ptr props = boost::make_shared( - *Properties70,boost::shared_ptr(NULL) + *Properties70,boost::shared_ptr(static_cast(NULL)) ); templates[oname+"."+pname] = props; diff --git a/code/FBXProperties.h b/code/FBXProperties.h index 43e0bb82e..62af59a6b 100644 --- a/code/FBXProperties.h +++ b/code/FBXProperties.h @@ -125,7 +125,7 @@ public: } const PropertyTable* TemplateProps() const { - return templateProps; + return templateProps.get(); } private: