X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fvariant.h;h=05a8139c679783000f9e56d65ae6674029931d49;hb=122846f0881673770d88eff7d925ecf25c01b62e;hp=5109dbcc11811ac8297f71e3903a1eb8c4f36f36;hpb=641a71730a0135fe647f6a230e9704d8b677f2c5;p=libs%2Fcore.git 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) { }