[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Aug 27 11:31:02 UTC 2005
SVN commit 454009 by okellogg:
Use static_cast in lieu of C style pointer cast.
M +2 -2 attribute.cpp
M +2 -2 operation.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/attribute.cpp #454008:454009
@@ -1,5 +1,5 @@
/*
- * copyright (C) 2002-2004
+ * copyright (C) 2002-2005
* Umbrello UML Modeller Authors <uml-devel@ uml.sf.net>
*/
@@ -177,7 +177,7 @@
UMLObject* UMLAttribute::clone() const
{
//FIXME: The new attribute should be slaved to the NEW parent not the old.
- UMLAttribute *clone = new UMLAttribute( (UMLAttribute *)parent() );
+ UMLAttribute *clone = new UMLAttribute( static_cast<UMLObject*>(parent()) );
copyInto(clone);
return clone;
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/operation.cpp #454008:454009
@@ -1,5 +1,5 @@
/*
- * copyright (C) 2002-2004
+ * copyright (C) 2002-2005
* Umbrello UML Modeller Authors <uml-devel@ uml.sf.net>
*/
@@ -222,7 +222,7 @@
UMLObject* UMLOperation::clone() const
{
//FIXME: The new operation should be slaved to the NEW parent not the old.
- UMLOperation *clone = new UMLOperation( (UMLClassifier *) parent());
+ UMLOperation *clone = new UMLOperation( static_cast<UMLClassifier*>(parent()) );
copyInto(clone);
return clone;
More information about the umbrello-devel
mailing list