C++11 tidying.
[dcpomatic.git] / src / lib / analyse_audio_job.cc
index c94e0b91ff715ebeadc6e9b162cdf29b0800a8a6..448902e1e15f94d6e035cf10757a5a72c075225f 100644 (file)
@@ -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());
                }
        }