From 5e4a1c5194735d59b398425d47027378b6b8fd2a Mon Sep 17 00:00:00 2001 From: mcbarton Date: Tue, 13 Oct 2026 22:24:25 +0100 Subject: [PATCH] Fix pessimizing move warning --- src/xholder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xholder.cpp b/src/xholder.cpp index 6a4ad768..767310b9 100644 --- a/src/xholder.cpp +++ b/src/xholder.cpp @@ -34,7 +34,7 @@ namespace xcpp } xholder_preamble::xholder_preamble(const xholder_preamble& rhs) - : p_holder(rhs.p_holder ? std::move(rhs.p_holder->clone()) : nullptr) + : p_holder(rhs.p_holder ? rhs.p_holder->clone() : nullptr) { }