From 46ac115bd19ee3aff5c816033de0b1d55a74e33f Mon Sep 17 00:00:00 2001 From: davc0n Date: Sat, 3 May 2025 18:54:50 +0200 Subject: protocols: refactor class member vars (types) (#10261) --- src/protocols/core/Shm.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/protocols/core/Shm.cpp') diff --git a/src/protocols/core/Shm.cpp b/src/protocols/core/Shm.cpp index 6ebfa64f..228884b9 100644 --- a/src/protocols/core/Shm.cpp +++ b/src/protocols/core/Shm.cpp @@ -20,9 +20,9 @@ CWLSHMBuffer::CWLSHMBuffer(SP pool_, uint32_t id, int32_t of m_stride = stride_; m_fmt = fmt_; m_offset = offset_; - opaque = NFormatUtils::isFormatOpaque(NFormatUtils::shmToDRM(fmt_)); + m_opaque = NFormatUtils::isFormatOpaque(NFormatUtils::shmToDRM(fmt_)); - resource = CWLBufferResource::create(makeShared(pool_->m_resource->client(), 1, id)); + m_resource = CWLBufferResource::create(makeShared(pool_->m_resource->client(), 1, id)); m_listeners.bufferResourceDestroy = events.destroy.registerListener([this](std::any d) { m_listeners.bufferResourceDestroy.reset(); @@ -31,8 +31,8 @@ CWLSHMBuffer::CWLSHMBuffer(SP pool_, uint32_t id, int32_t of } CWLSHMBuffer::~CWLSHMBuffer() { - if (resource) - resource->sendRelease(); + if (m_resource) + m_resource->sendRelease(); } Aquamarine::eBufferCapability CWLSHMBuffer::caps() { @@ -156,7 +156,7 @@ CWLSHMPoolResource::CWLSHMPoolResource(SP resource_, CFileDescriptor } // append instance so that buffer knows its owner - RESOURCE->resource->buffer = RESOURCE; + RESOURCE->m_resource->m_buffer = RESOURCE; }); if UNLIKELY (m_pool->m_data == MAP_FAILED) -- cgit v1.2.3