From 5de93f178abba0128f047384372f87a5e261bd21 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 29 Mar 2024 13:11:14 +0100 Subject: [PATCH] Fix move operator for WUPSConfigCategory --- include/wups/config/WUPSConfigCategory.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wups/config/WUPSConfigCategory.h b/include/wups/config/WUPSConfigCategory.h index 22d3db1..9f21988 100644 --- a/include/wups/config/WUPSConfigCategory.h +++ b/include/wups/config/WUPSConfigCategory.h @@ -20,7 +20,8 @@ class WUPSConfigCategory { WUPSConfigCategory &operator=(WUPSConfigCategory &&src) noexcept { if (this != &src) { - src.mHandle = {}; + this->mHandle = src.mHandle; + src.mHandle = {}; } return *this; }