mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-04 19:04:56 +11:00
all: fix gcc warnings
This commit is contained in:
parent
92252c36a3
commit
b528be9426
19 changed files with 57 additions and 22 deletions
|
|
@ -429,7 +429,7 @@ void PwObjectTracker::setObjects(const QList<QObject*>& objects) {
|
|||
|
||||
// connect destroy
|
||||
for (auto* object: objects) {
|
||||
if (auto* pwObject = dynamic_cast<PwObjectRefIface*>(object)) {
|
||||
if (dynamic_cast<PwObjectRefIface*>(object) != nullptr) {
|
||||
QObject::connect(object, &QObject::destroyed, this, &PwObjectTracker::objectDestroyed);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue