all: fix lints

This commit is contained in:
outfoxxed 2025-09-28 23:51:06 -07:00
parent f78078dfaf
commit 1d94144976
Signed by: outfoxxed
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;
}
}