From bb958a9e139d6ae90d45fe360287d33e229f971e Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Fri, 4 Jul 2025 09:58:37 +0200 Subject: pass: overload TexPass constructor overload it with a rvalue to allow us to move the data directly avoiding an extra copy. because SRenderData is not trivially copyable. --- src/hyprerror/HyprError.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hyprerror/HyprError.cpp') diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp index ad8a8782..be6a96b9 100644 --- a/src/hyprerror/HyprError.cpp +++ b/src/hyprerror/HyprError.cpp @@ -208,7 +208,7 @@ void CHyprError::draw() { data.box = monbox; data.a = m_fadeOpacity->value(); - g_pHyprRenderer->m_renderPass.add(makeShared(data)); + g_pHyprRenderer->m_renderPass.add(makeShared(std::move(data))); } void CHyprError::destroy() { -- cgit v1.2.3