- fbx: fix boost build errors (was building with BOOST_WORKAROUND for a while).
parent
6e6dbe97de
commit
04c77029e8
|
@ -339,7 +339,9 @@ boost::shared_ptr<const PropertyTable> GetPropertyTable(const Document& doc,
|
||||||
const Scope& sc)
|
const Scope& sc)
|
||||||
{
|
{
|
||||||
const Element* const Properties70 = sc["Properties70"];
|
const Element* const Properties70 = sc["Properties70"];
|
||||||
boost::shared_ptr<const PropertyTable> templateProps = boost::shared_ptr<const PropertyTable>(NULL);
|
boost::shared_ptr<const PropertyTable> templateProps = boost::shared_ptr<const PropertyTable>(
|
||||||
|
static_cast<const PropertyTable*>(NULL));
|
||||||
|
|
||||||
if(templateName.length()) {
|
if(templateName.length()) {
|
||||||
PropertyTemplateMap::const_iterator it = doc.Templates().find(templateName);
|
PropertyTemplateMap::const_iterator it = doc.Templates().find(templateName);
|
||||||
if(it != doc.Templates().end()) {
|
if(it != doc.Templates().end()) {
|
||||||
|
@ -566,7 +568,7 @@ void Document::ReadPropertyTemplates()
|
||||||
const Element* Properties70 = (*sc)["Properties70"];
|
const Element* Properties70 = (*sc)["Properties70"];
|
||||||
if(Properties70) {
|
if(Properties70) {
|
||||||
boost::shared_ptr<const PropertyTable> props = boost::make_shared<const PropertyTable>(
|
boost::shared_ptr<const PropertyTable> props = boost::make_shared<const PropertyTable>(
|
||||||
*Properties70,boost::shared_ptr<const PropertyTable>(NULL)
|
*Properties70,boost::shared_ptr<const PropertyTable>(static_cast<const PropertyTable*>(NULL))
|
||||||
);
|
);
|
||||||
|
|
||||||
templates[oname+"."+pname] = props;
|
templates[oname+"."+pname] = props;
|
||||||
|
|
|
@ -125,7 +125,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
const PropertyTable* TemplateProps() const {
|
const PropertyTable* TemplateProps() const {
|
||||||
return templateProps;
|
return templateProps.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue