Skip to content
Snippets Groups Projects
Commit 3e792a1f authored by Rene Brun's avatar Rene Brun
Browse files

Add a new static member fgCallingNew and a new static function Bool_t TClass::IsCallingNew

fGCallingNew is set in TClass::New to kTRUE before calling ClassInfo::New
and reset immediatly after the call.
An application can check in the default constructor is the call is coming from TClass::New.
This is currently used in the TCanvas default constructor.
This facility replaces the special case previously implemented via TROOT::ReadingObject.
With this change the previous changes to TKey::ReadObj or TBuffer::ReadObj are obsolete.


git-svn-id: http://root.cern.ch/svn/root/trunk@630 27541ba8-7e3a-0410-8455-c3a389f83636
parent a99992cc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment