From e272f71f368f3f33643c7e935110dd92cc9d4d3a Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 28 Dec 2022 15:00:57 +0200 Subject: [PATCH] Fix a shadowed variable warning --- source/core/variant.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/variant.h b/source/core/variant.h index 934a9e5..60501f3 100644 --- a/source/core/variant.h +++ b/source/core/variant.h @@ -131,13 +131,13 @@ private: template -inline void Variant::assign(const T &value) +inline void Variant::assign(const T &v) { if(funcs) funcs->destroy(storage); funcs = get_functions::type>(); - create(storage, value); + create(storage, v); } inline void Variant::copy_from(const Variant &v) -- 2.43.0