X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fvariant.h;h=515350de6ae5543158e20b6e2c20d4ef786163fb;hp=4a0c89cf1a9a4b22661d28e62ba192a06004aabd;hb=8db2c378e1d006afb792d829857e866541bf81a5;hpb=43a7280153efb239d74a902200f0a10c47c5de7a 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); }