used make_shared and make_unique for creating shared pointers
This commit is contained in:
@@ -28,6 +28,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
#include "AreaOrderer.h"
|
||||
#include <memory>
|
||||
#include "Area.h"
|
||||
|
||||
using namespace std;
|
||||
@@ -132,7 +133,7 @@ void CInnerCurves::Unite(shared_ptr<CInnerCurves> c)
|
||||
else
|
||||
{
|
||||
if(curve.IsClockwise())curve.Reverse();
|
||||
Insert(shared_ptr<CCurve>(new CCurve(curve)));
|
||||
Insert(std::make_shared<CCurve>(curve));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user