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:
Laurent Pinchart
2025-09-20 01:43:01 +03:00
parent 44da13f85f
commit 0f9b73bae2
3 changed files with 7 additions and 7 deletions

View File

@@ -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;
}

View File

@@ -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()

View File

@@ -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;
}