forked from quickshell/quickshell
lint: remove reinterpret_cast lint
Unhelpful.
This commit is contained in:
parent
be5e5fc4a5
commit
3fc1c914c7
15 changed files with 41 additions and 72 deletions
|
@ -37,7 +37,7 @@ QDBusError demarshallVariant(const QVariant& variant, const QMetaType& type, voi
|
|||
|
||||
if (variant.metaType() == type) {
|
||||
if (type.id() == QMetaType::QVariant) {
|
||||
*reinterpret_cast<QVariant*>(slot) = variant; // NOLINT
|
||||
*reinterpret_cast<QVariant*>(slot) = variant;
|
||||
} else {
|
||||
type.destruct(slot);
|
||||
type.construct(slot, variant.constData());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue