radiant/brush: use std::shared_ptr
[xonotic/netradiant.git] / radiant / brushxml.h
index c1fac55bccc0cdaced23d17a5cb3ebc5a9b0e590..d7add40832f583dda5d9ebcf1effe9c91627f714 100644 (file)
@@ -351,7 +351,7 @@ void pushElement( const XMLElement& element ){
        case xml_state_t::eBrush:
                ASSERT_MESSAGE( strcmp( element.name(), "plane" ) == 0, "parse error" );
                m_xml_state.push_back( xml_state_t::eFace );
-               m_brush.push_back( FaceSmartPointer( new Face( &m_brush ) ) );
+               m_brush.push_back( std::make_shared<Face>( &m_brush ) );
                constructor( faceImporter(), makeReference( *m_brush.back() ) );
                m_brush.planeChanged();
                m_brush.shaderChanged();