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: