void HYDROOperations_Factory::Register(
ImageComposer_Operator* theOperator)
{
- FACTORY->myOps[QString(typeid(*theOperator).name())] = theOperator;
+ if ( !theOperator )
+ return;
+
+ FACTORY->myOps[ theOperator->name() ] = theOperator;
}
HYDROOperations_Factory::HYDROOperations_Factory()
Handle(HYDROData_Image)::DownCast(theDoc->CreateObject(KIND_IMAGE));
// get data from operation
if (theOperator) {
- anImage->SetOperatorName(QString(typeid(*theOperator).name()));
- anImage->SetArgs(theOperator->getBinArgs());
+ anImage->SetOperatorName( theOperator->name() );
+ anImage->SetArgs( theOperator->getBinArgs() );
}
return anImage;
}