diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-08-19 22:42:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-08-19 22:42:15 +0200 |
| commit | d12b5fbca1b961124577ed394d70e1a0149d4633 (patch) | |
| tree | 358bd5dd7ef445c98b77e2b74cd0980fdfd2cef4 | |
| parent | a71ee9ac2b229bbca5b4b591108108b5869872ee (diff) | |
Compress an if.
| -rw-r--r-- | src/combine.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/combine.cc b/src/combine.cc index d4896192..7d5c51fb 100644 --- a/src/combine.cc +++ b/src/combine.cc @@ -140,8 +140,7 @@ dcp::combine( continue; } - auto sub = dynamic_pointer_cast<dcp::InteropTextAsset>(j); - if (sub) { + if (auto sub = dynamic_pointer_cast<dcp::InteropTextAsset>(j)) { /* Interop fonts are really fiddly. The font files are assets (in the ASSETMAP) * and also linked from the font XML by filename. We have to fix both these things, * and re-write the font XML file since the font URI might have changed if it's a duplicate |
