Commit 42fceebe authored by Jan Möbius's avatar Jan Möbius

Use typedef for creating new object

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6268 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3c6554dd
......@@ -55,9 +55,9 @@
int FilePolyMeshPlugin::addEmpty( ){
// new object data struct
MeshObject< PolyMesh, DATA_POLY_MESH >* object;
PolyMeshObject* object;
object = new MeshObject< PolyMesh, DATA_POLY_MESH >( dynamic_cast < ACG::SceneGraph::SeparatorNode* >( PluginFunctions::getRootNode() ) );
object = new PolyMeshObject( dynamic_cast < ACG::SceneGraph::SeparatorNode* >( PluginFunctions::getRootNode() ) );
// Set pointers for tree structure
object->setParent(PluginFunctions::objectRoot());
......@@ -88,9 +88,9 @@ int FilePolyMeshPlugin::addEmpty( ){
int FilePolyMeshPlugin::loadObject(QString _filename){
// new object data struct
MeshObject< PolyMesh, DATA_POLY_MESH >* object;
PolyMeshObject* object;
object = new MeshObject< PolyMesh, DATA_POLY_MESH >( dynamic_cast < ACG::SceneGraph::SeparatorNode* >( PluginFunctions::getRootNode() ) );
object = new PolyMeshObject( dynamic_cast < ACG::SceneGraph::SeparatorNode* >( PluginFunctions::getRootNode() ) );
// Set pointers for tree structure
object->setParent(PluginFunctions::objectRoot());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment