all: fix new lints

This commit is contained in:
outfoxxed committed 2025-06-12 17:01:13 -07:00
1 parent 05b5eccf2e
commit 517143adf9
6 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -115,7 +115,7 @@ void TestScriptModel::unique_data() {
void TestScriptModel::unique() {
QFETCH(const QString, oldstr);
QFETCH(const QString, newstr);
QFETCH(OpList, operations);
QFETCH(const OpList, operations);
auto strToVariantList = [](const QString& str) -> QVariantList {
QVariantList list;
+4 -1
View File
@@ -16,6 +16,9 @@
#include "node.hpp"
#include "registry.hpp"
// This and spa_json_init are part of json-core.h, which is missing from older pw versions.
struct spa_json;
namespace qs::service::pipewire {
namespace {
@@ -72,7 +75,7 @@ void PwDefaultTracker::onMetadataProperty(const char* key, const char* type, con
if (type != nullptr && value != nullptr && strcmp(type, "Spa:String:JSON") == 0) {
auto failed = true;
auto iter = std::array<spa_json, 2>();
spa_json_init(&iter[0], value, strlen(value));
spa_json_init(&iter[0], value, strlen(value)); // NOLINT (misc-include-cleaner)
if (spa_json_enter_object(&iter[0], &iter[1]) > 0) {
auto buf = std::array<char, 1024>();
-1
View File
@@ -18,7 +18,6 @@ HyprlandSurface::HyprlandSurface(
QtWaylandClient::QWaylandWindow* backer
)
: QtWayland::hyprland_surface_v1(surface)
, backer(backer)
, backerSurface(backer->surface()) {}
HyprlandSurface::~HyprlandSurface() { this->destroy(); }
-1
View File
@@ -24,7 +24,6 @@ public:
void setVisibleRegion(const QRegion& region);
private:
QtWaylandClient::QWaylandWindow* backer;
wl_surface* backerSurface = nullptr;
};
+1
View File
@@ -169,6 +169,7 @@ void QSWaylandSessionLockSurface::initVisible() {
auto& surfacePointer = reinterpret_cast<SurfaceAccessor*>(this->window())->surfacePointer();
// Swap out the surface for a dummy during initWindow.
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED // swap()
{
surfacePointer.swap(*tempSurface);
+2 -1
View File
@@ -156,7 +156,8 @@ QVector<Event> I3Ipc::parseResponse() {
break;
}
QJsonParseError e;
// Importing this makes CI builds fail for some reason.
QJsonParseError e; // NOLINT (misc-include-cleaner)
auto data = QJsonDocument::fromJson(payload, &e);
if (e.error != QJsonParseError::NoError) {