mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 02:49:12 +00:00
Replace Boost shared pointers
Generated with the assistance of an AI coding tool.
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include "svg_serializer.h"
|
||||
|
||||
#include <boost/dll/alias.hpp>
|
||||
#include <boost/make_shared.hpp>
|
||||
#include <memory>
|
||||
|
||||
namespace ifcopenshell {
|
||||
namespace serializers {
|
||||
@@ -37,12 +37,12 @@ plugin::metadata plugin_metadata() {
|
||||
return geometry_serializer_plugin_metadata("svg");
|
||||
}
|
||||
|
||||
boost::shared_ptr<geometry_serializer> create_serializer(const geometry_serializer_context& context) {
|
||||
std::shared_ptr<geometry_serializer> create_serializer(const geometry_serializer_context& context) {
|
||||
if (context.output_temp_stream) {
|
||||
return boost::make_shared<svg_serializer>(
|
||||
return std::make_shared<svg_serializer>(
|
||||
*context.output_temp_stream, context.settings);
|
||||
}
|
||||
return boost::make_shared<svg_serializer>(context.output_temp_filename, context.settings);
|
||||
return std::make_shared<svg_serializer>(context.output_temp_filename, context.settings);
|
||||
}
|
||||
|
||||
void configure_serializer(geometry_serializer_context& context) {
|
||||
|
||||
Reference in New Issue
Block a user