projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
396fc05
)
Cleanup: use make_shared.
author
Carl Hetherington
<cth@carlh.net>
Tue, 16 May 2023 21:12:03 +0000
(23:12 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 16 May 2023 21:12:03 +0000
(23:12 +0200)
src/subtitle_asset.cc
patch
|
blob
|
history
diff --git
a/src/subtitle_asset.cc
b/src/subtitle_asset.cc
index 5a448f3ffd7727b721738daf9be1a0a70da28a44..f35b47ef223f0b7e9ae74aa66a936594f6792531 100644
(file)
--- a/
src/subtitle_asset.cc
+++ b/
src/subtitle_asset.cc
@@
-647,7
+647,7
@@
SubtitleAsset::pull_fonts (shared_ptr<order::Part> part)
merged.push_back (*i);
++i;
} else {
-
shared_ptr<order::Part> group (new order::Part (part, (*i)->font)
);
+
auto group = make_shared<order::Part>(part, (*i)->font
);
for (auto k = i; k != j; ++k) {
(*k)->font.clear ();
group->children.push_back (*k);