libcamera: Use simpler Signal::disconnect() function

When disconnecting a signal from a receiver, it is usually not necessary
to specify the receiver's slot function explicitly, as the signal is
often connected to a single slot for a given receiver. We can thus use a
simpler version of Signal::disconnect() that takes a pointer to the
receiver object only. This reduces code size, as the disconnect()
function is a template function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2021-09-02 01:16:44 +03:00
parent 1d00387557
commit eb5c4ead88
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ void CameraManager::Private::createPipelineHandlers()
void CameraManager::Private::cleanup()
{
enumerator_->devicesAdded.disconnect(this, &Private::createPipelineHandlers);
enumerator_->devicesAdded.disconnect(this);
/*
* Release all references to cameras to ensure they all get destroyed