libcamera: Drop unneeded usage of this pointer
A few unneeded usages of the this pointer to qualify access to class members have been introduced over time. Drop them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Isaac Scott <isaac.scott@ideasonboard.com>
This commit is contained in:
@@ -79,7 +79,7 @@ public:
|
||||
SharedMemObject(SharedMemObject<T> &&rhs)
|
||||
: SharedMem(std::move(rhs))
|
||||
{
|
||||
this->obj_ = rhs.obj_;
|
||||
obj_ = rhs.obj_;
|
||||
rhs.obj_ = nullptr;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
SharedMemObject<T> &operator=(SharedMemObject<T> &&rhs)
|
||||
{
|
||||
SharedMem::operator=(std::move(rhs));
|
||||
this->obj_ = rhs.obj_;
|
||||
obj_ = rhs.obj_;
|
||||
rhs.obj_ = nullptr;
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ LOG_DEFINE_CATEGORY(Camera)
|
||||
CameraManager::Private::Private()
|
||||
: Thread("CameraManager"), initialized_(false)
|
||||
{
|
||||
ipaManager_ = std::make_unique<IPAManager>(this->configuration());
|
||||
ipaManager_ = std::make_unique<IPAManager>(configuration());
|
||||
}
|
||||
|
||||
int CameraManager::Private::start()
|
||||
|
||||
@@ -80,8 +80,8 @@ SharedMem::SharedMem(const std::string &name, std::size_t size)
|
||||
*/
|
||||
SharedMem::SharedMem(SharedMem &&rhs)
|
||||
{
|
||||
this->fd_ = std::move(rhs.fd_);
|
||||
this->mem_ = rhs.mem_;
|
||||
fd_ = std::move(rhs.fd_);
|
||||
mem_ = rhs.mem_;
|
||||
rhs.mem_ = {};
|
||||
}
|
||||
|
||||
@@ -109,8 +109,8 @@ SharedMem::~SharedMem()
|
||||
*/
|
||||
SharedMem &SharedMem::operator=(SharedMem &&rhs)
|
||||
{
|
||||
this->fd_ = std::move(rhs.fd_);
|
||||
this->mem_ = rhs.mem_;
|
||||
fd_ = std::move(rhs.fd_);
|
||||
mem_ = rhs.mem_;
|
||||
rhs.mem_ = {};
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user