From 56d4d9c9c93d0fac381d90e40ecf415248aef48d Mon Sep 17 00:00:00 2001 From: Philippe Canal <pcanal@fnal.gov> Date: Wed, 14 Nov 2007 02:39:41 +0000 Subject: [PATCH] Speed up ROOT::GetFunction when the argument null git-svn-id: http://root.cern.ch/svn/root/trunk@20796 27541ba8-7e3a-0410-8455-c3a389f83636 --- base/src/TROOT.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/base/src/TROOT.cxx b/base/src/TROOT.cxx index aaa464ae1da..2f1b72caf92 100644 --- a/base/src/TROOT.cxx +++ b/base/src/TROOT.cxx @@ -882,6 +882,10 @@ TObject *TROOT::GetFunction(const char *name) const { // Return pointer to function with name. + if (name == 0 || name[0] == 0) { + return 0; + } + TObject *f1 = fFunctions->FindObject(name); if (f1) return f1; -- GitLab