all: fix lints

This commit is contained in:
outfoxxed 2025-09-28 23:51:06 -07:00
parent f78078dfaf
commit 1d94144976
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
15 changed files with 61 additions and 57 deletions

View file

@ -77,7 +77,7 @@ QDebug& operator<<(QDebug& debug, const WlDmaBuffer* buffer) {
}
GbmDeviceHandle::~GbmDeviceHandle() {
if (device) {
if (this->device) {
MANAGER->unrefGbmDevice(this->device);
}
}
@ -522,7 +522,7 @@ WlDmaBuffer::~WlDmaBuffer() {
bool WlDmaBuffer::isCompatible(const WlBufferRequest& request) const {
if (request.width != this->width || request.height != this->height) return false;
auto matchingFormat = std::ranges::find_if(request.dmabuf.formats, [&](const auto& format) {
auto matchingFormat = std::ranges::find_if(request.dmabuf.formats, [this](const auto& format) {
return format.format == this->format
&& (format.modifiers.isEmpty()
|| std::ranges::find(format.modifiers, this->modifier) != format.modifiers.end());

View file

@ -40,7 +40,7 @@ public:
'\0'}
) {
for (auto i = 3; i != 0; i--) {
if (chars[i] == ' ') chars[i] = '\0';
if (this->chars[i] == ' ') this->chars[i] = '\0';
else break;
}
}

View file

@ -31,7 +31,7 @@ void IdleMonitor::updateNotification() {
delete notification;
notification = nullptr;
auto guard = qScopeGuard([&] { this->bNotification = notification; });
auto guard = qScopeGuard([&, this] { this->bNotification = notification; });
auto params = this->bParams.value();

View file

@ -68,11 +68,11 @@ void WlrScreencopyContext::captureFrame() {
this->request.reset();
if (this->region.isEmpty()) {
this->init(manager->capture_output(this->paintCursors ? 1 : 0, screen->output()));
this->init(this->manager->capture_output(this->paintCursors ? 1 : 0, this->screen->output()));
} else {
this->init(manager->capture_output_region(
this->init(this->manager->capture_output_region(
this->paintCursors ? 1 : 0,
screen->output(),
this->screen->output(),
this->region.x(),
this->region.y(),
this->region.width(),