summaryrefslogtreecommitdiff
path: root/src/protocols/core/DataDevice.cpp
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2025-07-10 10:44:59 +0200
committerVaxry <43317083+vaxerski@users.noreply.github.com>2025-07-10 14:09:00 +0200
commitf5af40afce9d453dbf2e5bab739520e1cb80ab12 (patch)
tree05d4d51d900e07972c1739c6c20fa3ff07201eaf /src/protocols/core/DataDevice.cpp
parent6375e471f33bf1a008a005e963c57a12c7ff0e94 (diff)
renderpass: use unique ptr instead of shared ptr
lets use unique ptrs instead of refcounting shared ptr when its not needed, use rvalue reference to construct in vector directly.
Diffstat (limited to 'src/protocols/core/DataDevice.cpp')
-rw-r--r--src/protocols/core/DataDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/core/DataDevice.cpp b/src/protocols/core/DataDevice.cpp
index 4435e4c7..0ede65ed 100644
--- a/src/protocols/core/DataDevice.cpp
+++ b/src/protocols/core/DataDevice.cpp
@@ -814,7 +814,7 @@ void CWLDataDeviceProtocol::renderDND(PHLMONITOR pMonitor, const Time::steady_tp
CTexPassElement::SRenderData data;
data.tex = m_dnd.dndSurface->m_current.texture;
data.box = box;
- g_pHyprRenderer->m_renderPass.add(makeShared<CTexPassElement>(std::move(data)));
+ g_pHyprRenderer->m_renderPass.add(makeUnique<CTexPassElement>(std::move(data)));
CBox damageBox = CBox{surfacePos, m_dnd.dndSurface->m_current.size}.expand(5);
g_pHyprRenderer->damageBox(damageBox);