diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-15 23:51:08 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-16 01:11:04 +0200 |
| commit | 55c007ab910ee9586d6bd2faba165e42f6148622 (patch) | |
| tree | b411cfc71111eae285ff3b71d584a7e9c933471a /src/lib/analyse_audio_job.cc | |
| parent | 2b546a0c8edcd8b1f8917902461c7bbff61f7325 (diff) | |
C++11 tidying.
Diffstat (limited to 'src/lib/analyse_audio_job.cc')
| -rw-r--r-- | src/lib/analyse_audio_job.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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<const AudioContent> ac = _playlist->content().front()->audio; - if (ac) { + if (auto ac = _playlist->content().front()->audio) { _analysis->set_analysis_gain (ac->gain()); } } |
