diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-03-16 11:19:05 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-16 20:18:40 +0100 |
commit | 0a4f7813c4deb26194eba1efe0ff2077460ab599 (patch) | |
tree | 050c44ed14caf70a6fa9384f7b8710ca0783ff6b /avmedia | |
parent | 10a48c737d347bcce765c8fbe009bc1dd0bb0c4d (diff) |
Simplify containers iterations in accessibility, avmedia
Use range-based loop or replace with STL functions
Change-Id: I47cabb02a2e52f2af8e87379fc44906d2a732d19
Reviewed-on: https://gerrit.libreoffice.org/69334
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/gstreamer/gstplayer.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index 70cc690ab56c..78928cddcc45 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -227,10 +227,10 @@ void MissingPluginInstaller::detach(Player const * source) { void MissingPluginInstaller::processQueue() { assert(!queued_.empty()); assert(currentDetails_.empty()); - for (auto i = queued_.begin(); i != queued_.end(); ++i) { - reported_.insert(i->first); - currentDetails_.push_back(i->first); - currentSources_.insert(i->second.begin(), i->second.end()); + for (const auto& rEntry : queued_) { + reported_.insert(rEntry.first); + currentDetails_.push_back(rEntry.first); + currentSources_.insert(rEntry.second.begin(), rEntry.second.end()); } queued_.clear(); } |