]> git.tdb.fi Git - libs/core.git/commitdiff
Fix a shadowed variable warning
authorMikko Rasa <tdb@tdb.fi>
Wed, 28 Dec 2022 13:00:57 +0000 (15:00 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 28 Dec 2022 13:00:57 +0000 (15:00 +0200)
source/core/variant.h

index 934a9e539276e3ad406a6b05b00e01cd3d964ca0..60501f3308e0c36e54ab4c5bafac4379f279db58 100644 (file)
@@ -131,13 +131,13 @@ private:
 
 
 template<typename T>
-inline void Variant::assign(const T &value)
+inline void Variant::assign(const T &v)
 {
        if(funcs)
                funcs->destroy(storage);
 
        funcs = get_functions<typename std::remove_cv<T>::type>();
-       create(storage, value);
+       create(storage, v);
 }
 
 inline void Variant::copy_from(const Variant &v)