Explanation of TFolder::Clear says:
Delete all objects from a folder list.
Does it mean that it:
simply removes the object from the list or
deletes it leaving a dangling pointer
deletes the object and removes the pointer?
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
@pcanal could you please check this post? thanks!
pcanal
June 3, 2021, 2:04pm
#3
It will never do 2.
It might do 1. or 3. depending on whether you explicitly made the TFolder owner of its content (by calling TFolder::SetOwner). See the the TFolder description/documentation for more details.
system
closed
June 17, 2021, 2:05pm
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.