From d12b5fbca1b961124577ed394d70e1a0149d4633 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 19 Aug 2025 22:42:15 +0200 Subject: Compress an if. --- src/combine.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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(j); - if (sub) { + if (auto sub = dynamic_pointer_cast(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 -- cgit v1.2.3