summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/verify.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 4568aaa1..4be23861 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1190,8 +1190,7 @@ dcp::verify_text_lines_and_characters(
/* Make a list of "subtitle starts" and "subtitle ends" events */
for (auto j: asset->texts()) {
- auto text = dynamic_pointer_cast<const TextString>(j);
- if (text) {
+ if (auto text = dynamic_pointer_cast<const TextString>(j)) {
auto in = make_shared<Event>(text->in(), position(text), text->text().length());
events.push_back(in);
events.push_back(make_shared<Event>(text->out(), in));