X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fvariant.h;h=8d6db9a3de116e81433ac0e6fb706a3748adba50;hb=d5dd704b2576f878809e87dbb8ff8591b9bdbce4;hp=f78851f8582710849db54b3b7259042918897a75;hpb=47a232c3c19e718a30281d3ada8acc1b6212ea8c;p=libs%2Fcore.git diff --git a/source/core/variant.h b/source/core/variant.h index f78851f..8d6db9a 100644 --- a/source/core/variant.h +++ b/source/core/variant.h @@ -44,14 +44,14 @@ public: Variant &operator=(const T &v) { delete store; - store=new Store::Type>(v); + store = new Store::Type>(v); return *this; } Variant &operator=(const Variant &v) { delete store; - store=(v.store ? v.store->clone() : 0); + store = (v.store ? v.store->clone() : 0); return *this; } @@ -59,7 +59,7 @@ public: T &value() const { typedef typename RemoveConst::Type NCT; - Store *s=dynamic_cast *>(store); + Store *s = dynamic_cast *>(store); if(!s) throw InvalidState("Type mismatch"); return s->data;