/* $Id$
This file is part of libmspcore
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2008 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
Variant &operator=(const T &v)
{
delete store;
- store=new Store<typename RemoveConst<T>::Type>(v);
+ store = new Store<typename RemoveConst<T>::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;
}
T &value() const
{
typedef typename RemoveConst<T>::Type NCT;
- Store<NCT> *s=dynamic_cast<Store<NCT> *>(store);
+ Store<NCT> *s = dynamic_cast<Store<NCT> *>(store);
if(!s)
throw InvalidState("Type mismatch");
return s->data;