From 55c007ab910ee9586d6bd2faba165e42f6148622 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 15 Apr 2021 23:51:08 +0200 Subject: C++11 tidying. --- src/lib/analyse_audio_job.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/analyse_audio_job.cc') diff --git a/src/lib/analyse_audio_job.cc b/src/lib/analyse_audio_job.cc index c94e0b91f..448902e1e 100644 --- a/src/lib/analyse_audio_job.cc +++ b/src/lib/analyse_audio_job.cc @@ -205,8 +205,7 @@ AnalyseAudioJob::run () /* If there was only one piece of content in this analysis we may later need to know what its gain was when we analysed it. */ - shared_ptr ac = _playlist->content().front()->audio; - if (ac) { + if (auto ac = _playlist->content().front()->audio) { _analysis->set_analysis_gain (ac->gain()); } } -- cgit v1.2.3