mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
all: fix lints
This commit is contained in:
parent
f78078dfaf
commit
1d94144976
15 changed files with 61 additions and 57 deletions
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue