Hi Anton, I have added an optional argument to TObject::Clone If the argument is not specified, the clone object has the same name as the parent object. TObject::Clone itself is not modified because TObject has, by definition, no name. The real implementation is in TNamed::Clone. Rene Brun Anton Fokin wrote: > > Hi rooters, > > I think it might be wise to add/improve > > TObject::Clone(const char* Name="") > > function, which sets Name in case of TNamed derived classes. This is useful > if you clone named objects like TH1, especially if you algorithm deletes > overwritten object with the same name. > > TPortfolio *ClonePortfolio = Portfolio->Clone("ClonePortfolio"); > > can help a lot. > > /Anton > > http://www.smartquant.com
This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:06 MEST