X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fvariant.h;fp=source%2Fcore%2Fvariant.h;h=05a8139c679783000f9e56d65ae6674029931d49;hp=5109dbcc11811ac8297f71e3903a1eb8c4f36f36;hb=122846f0881673770d88eff7d925ecf25c01b62e;hpb=b116e161e377da0e4e52f07745ecb2d22f962ae9 diff --git a/source/core/variant.h b/source/core/variant.h index 5109dbc..05a8139 100644 --- a/source/core/variant.h +++ b/source/core/variant.h @@ -50,10 +50,10 @@ private: { return false; } }; - StoreBase *store; + StoreBase *store = 0; public: - Variant(): store(0) { } + Variant() { } template Variant(const T &v): store(new Store::type>(v)) { } Variant(const Variant &v): store(v.store ? v.store->clone() : 0) { }