From 68f7c2312ed663e9428dc50380e0e20a19cceb22 Mon Sep 17 00:00:00 2001 From: Philippe Canal <pcanal@fnal.gov> Date: Fri, 27 Apr 2012 11:54:04 +0000 Subject: [PATCH] operator new never returns 0 (it might throw an exception though or call ::Fatal), so no need to check the value git-svn-id: http://root.cern.ch/svn/root/trunk@43985 27541ba8-7e3a-0410-8455-c3a389f83636 --- tree/tree/src/TTree.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree/tree/src/TTree.cxx b/tree/tree/src/TTree.cxx index 7fe44a50b40..06a3dd4a1e0 100644 --- a/tree/tree/src/TTree.cxx +++ b/tree/tree/src/TTree.cxx @@ -1039,7 +1039,7 @@ TFriendElement* TTree::AddFriend(const char* treename, const char* filename) fFriends = new TList(); } TFriendElement* fe = new TFriendElement(this, treename, filename); - R__ASSERT(fe); // this assert is for historical reasons. Don't remove it unless you understand all the consequences. + fFriends->Add(fe); TTree* t = fe->GetTree(); if (t) { -- GitLab