From 41e206f5aa20a0e13432a99849ee0bd4ddeba293 Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Sun, 9 Jun 2024 17:33:04 +0200 Subject: [PATCH] base: fix move constructor of ObjHandle --- src/include/base/obj_handle.cc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/base/obj_handle.cc.h b/src/include/base/obj_handle.cc.h index 8288de4..ab99ea8 100644 --- a/src/include/base/obj_handle.cc.h +++ b/src/include/base/obj_handle.cc.h @@ -29,7 +29,7 @@ namespace CNORXZ ObjHandle::ObjHandle(const ObjHandle& a) : mC(a.mC->copy()) {} template - ObjHandle::ObjHandle(ObjHandle&& a) : mC(a.mC) {} + ObjHandle::ObjHandle(ObjHandle&& a) : mC(std::move(a.mC)) {} template ObjHandle& ObjHandle::operator=(const ObjHandle& a)