summaryrefslogtreecommitdiffstats
path: root/src/controllers/bulk/bulkcontroller.cpp
diff options
context:
space:
mode:
authorDaniel Schürmann <daschuer@mixxx.org>2020-06-10 21:11:50 +0200
committerDaniel Schürmann <daschuer@mixxx.org>2020-06-10 21:11:50 +0200
commit1fe5ba1af7aa5edb3d54fc807798d266f40d2ad7 (patch)
tree493f5975d890bfc6e74af2ee1d43c28e3ca89cc6 /src/controllers/bulk/bulkcontroller.cpp
parentfd37489a8d6bfa8f30cc495153381e29fc00e624 (diff)
Use anonymous namespace in BaseSyncableListener
Diffstat (limited to 'src/controllers/bulk/bulkcontroller.cpp')
-rw-r--r--src/controllers/bulk/bulkcontroller.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/controllers/bulk/bulkcontroller.cpp b/src/controllers/bulk/bulkcontroller.cpp
index 4280cc75be..d43c6cec29 100644
--- a/src/controllers/bulk/bulkcontroller.cpp
+++ b/src/controllers/bulk/bulkcontroller.cpp
@@ -181,8 +181,7 @@ int BulkController::open() {
m_pReader = new BulkReader(m_phandle, in_epaddr);
m_pReader->setObjectName(QString("BulkReader %1").arg(getName()));
- connect(m_pReader, SIGNAL(incomingData(QByteArray, mixxx::Duration)),
- this, SLOT(receive(QByteArray, mixxx::Duration)));
+ connect(m_pReader, &BulkReader::incomingData, this, &BulkController::receive);
// Controller input needs to be prioritized since it can affect the
// audio directly, like when scratching
@@ -205,8 +204,7 @@ int BulkController::close() {
qWarning() << "BulkReader not present for" << getName()
<< "yet the device is open!";
} else {
- disconnect(m_pReader, SIGNAL(incomingData(QByteArray, mixxx::Duration)),
- this, SLOT(receive(QByteArray, mixxx::Duration)));
+ disconnect(m_pReader, &BulkReader::incomingData, this, &BulkController::receive);
m_pReader->stop();
controllerDebug(" Waiting on reader to finish");
m_pReader->wait();