all: fix lints

This commit is contained in:
outfoxxed 2025-09-28 23:51:06 -07:00
parent 6cc1b6f36a
commit 344ca340ba
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
14 changed files with 60 additions and 56 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

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