Skip to content

Commit 3f6742a

Browse files
committed
Use std::make_shared
1 parent e22eb13 commit 3f6742a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/osmium/io/detail/pbf_output_format.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ namespace osmium {
553553
void switch_primitive_block_type(OSMFormat::PrimitiveGroup type) {
554554
if (!m_primitive_block || !m_primitive_block->can_add(type)) {
555555
store_primitive_block();
556-
m_primitive_block.reset(new PrimitiveBlock{m_options, type, m_bucket_count});
556+
m_primitive_block = std::make_shared<PrimitiveBlock>(m_options, type, m_bucket_count);
557557
}
558558
}
559559

0 commit comments

Comments
 (0)