From: Mikko Rasa Date: Wed, 28 Dec 2022 13:00:57 +0000 (+0200) Subject: Fix a shadowed variable warning X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=e272f71f368f3f33643c7e935110dd92cc9d4d3a Fix a shadowed variable warning --- 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)