all: fix gcc warnings

This commit is contained in:
outfoxxed 2024-11-05 13:31:24 -08:00
parent 92252c36a3
commit b528be9426
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
19 changed files with 57 additions and 22 deletions

View file

@ -63,6 +63,12 @@ void PwBindableObject::unref() {
if (this->refcount == 0) this->unbind();
}
void PwBindableObject::registryBind(const char* interface, quint32 version) {
// NOLINTNEXTLINE
auto* object = pw_registry_bind(this->registry->object, this->id, interface, version, 0);
this->object = static_cast<pw_proxy*>(object);
}
void PwBindableObject::bind() {
qCDebug(logRegistry) << "Bound object" << this;
this->bindHooks();