X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fvariant.h;h=515350de6ae5543158e20b6e2c20d4ef786163fb;hp=4a0c89cf1a9a4b22661d28e62ba192a06004aabd;hb=c3e242c2629cbc9645258b30aaf07b7285d4372b;hpb=be67e7f4a28332bfab44d0cbc9f008e24ddf3510 diff --git a/source/core/variant.h b/source/core/variant.h index 4a0c89c..515350d 100644 --- a/source/core/variant.h +++ b/source/core/variant.h @@ -31,7 +31,7 @@ private: { T data; - Store(T d): data(d) { } + Store(const T &d): data(d) { } virtual const std::type_info &type_id() const { return typeid(T); } virtual StoreBase *clone() const { return new Store(data); }