mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Fix CI build and REUSE lint failures
Use QByteArray::data() instead of constData() for the udev_device_set_sysattr_value call — Alpine libudev declares the value parameter as char*, not const char*. Fix the SPDX license identifier in CategoryPanel.qml from "EUPL 1.2" to "EUPL-1.2".
This commit is contained in:
parent
caef3bc82e
commit
e3463adca3
2 changed files with 2 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// SPDX-FileCopyrightText: Marco Allegretti
|
||||
// SPDX-License-Identifier: EUPL 1.2
|
||||
// SPDX-License-Identifier: EUPL-1.2
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls as QQC2
|
||||
|
|
|
|||
|
|
@ -54,8 +54,7 @@ KAuth::ActionReply Flashlighthelper::setbrightness(const QVariantMap &args)
|
|||
return KAuth::ActionReply::HelperErrorReply();
|
||||
}
|
||||
|
||||
// The libudev header declares value as const char*, so no cast needed.
|
||||
int ret = udev_device_set_sysattr_value(device, "brightness", brightnessBytes.constData());
|
||||
int ret = udev_device_set_sysattr_value(device, "brightness", brightnessBytes.data());
|
||||
|
||||
udev_device_unref(device);
|
||||
udev_unref(udev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue