X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvalue.cpp;h=ad57b56ba7b1f78f5bb638e496f4d4676cb8c8f3;hb=b494445bc3ba5344e65869c7c6bab2b008438f1c;hp=b942308ea3dcc97ba4fe6b0dea1cf5815243958a;hpb=e3acc0b267b14fda5db3c7bbb2f218b993ef84b3;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/value.cpp b/synfig-core/trunk/src/synfig/value.cpp index b942308..ad57b56 100644 --- a/synfig-core/trunk/src/synfig/value.cpp +++ b/synfig-core/trunk/src/synfig/value.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file value.cpp ** \brief Template Header ** ** $Id: value.cpp,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -43,7 +44,7 @@ #endif -using namespace sinfg; +using namespace synfig; using namespace std; using namespace etl; @@ -68,43 +69,43 @@ ValueBase::ValueBase(Type x): switch(type) { case TYPE_BOOL: - static_cast(data)=new bool(); + data=static_cast(new bool()); break; case TYPE_INTEGER: - static_cast(data)=new int(); + data=static_cast(new int()); break; case TYPE_ANGLE: - static_cast(data)=new Angle(); + data=static_cast(new Angle()); break; case TYPE_VECTOR: - static_cast(data)=new Vector(); + data=static_cast(new Vector()); break; case TYPE_TIME: - static_cast(data)=new Time(); + data=static_cast(new Time()); break; case TYPE_REAL: - static_cast(data)=new Real(); + data=static_cast(new Real()); break; case TYPE_COLOR: - static_cast(data)=new Color(); + data=static_cast(new Color()); break; case TYPE_SEGMENT: - static_cast(data)=new Segment(); + data=static_cast(new Segment()); break; case TYPE_BLINEPOINT: - static_cast(data)=new BLinePoint(); + data=static_cast(new BLinePoint()); break; case TYPE_LIST: - static_cast(data)=new list_type(); + data=static_cast(new list_type()); break; case TYPE_STRING: - static_cast(data)=new String(); + data=static_cast(new String()); break; case TYPE_GRADIENT: - static_cast(data)=new Gradient(); + data=static_cast(new Gradient()); break; case TYPE_CANVAS: - static_cast*>(data)=new etl::handle(); + data=static_cast(new etl::handle()); break; default: break; @@ -321,7 +322,7 @@ ValueBase::type_name(Type id) default: break; } - sinfg::warning("Encountered unknown ValueBase with an Type of %d",id); + synfig::warning("Encountered unknown ValueBase with an Type of %d",id); // assert(0); return "UNKNOWN"; }