all: fix gcc warnings

This commit is contained in:
outfoxxed 2024-11-05 13:31:24 -08:00
parent 92252c36a3
commit b528be9426
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
19 changed files with 57 additions and 22 deletions

View file

@ -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);
}
}