Remove using std::placeholders

This commit is contained in:
Jonas Kvinge
2021-03-26 23:33:56 +01:00
parent 91ab8e22b7
commit c6604734c9
10 changed files with 15 additions and 45 deletions

View File

@@ -65,8 +65,6 @@
# include "device/cddasongloader.h"
#endif
using std::placeholders::_1;
QSet<QString> SongLoader::sRawUriSchemes;
const int SongLoader::kDefaultTimeout = 5000;
@@ -431,7 +429,7 @@ SongLoader::Result SongLoader::LoadRemote() {
timeout_timer_->start(timeout_);
// Create the pipeline - it gets unreffed if it goes out of scope
std::shared_ptr<GstElement> pipeline(gst_pipeline_new(nullptr), std::bind(&gst_object_unref, _1));
std::shared_ptr<GstElement> pipeline(gst_pipeline_new(nullptr), std::bind(&gst_object_unref, std::placeholders::_1));
// Create the source element automatically based on the URL
GstElement *source = gst_element_make_from_uri(GST_URI_SRC, url_.toEncoded().constData(), nullptr, nullptr);