Skip to content
Snippets Groups Projects
Commit 56d4d9c9 authored by Philippe Canal's avatar Philippe Canal
Browse files

Speed up ROOT::GetFunction when the argument null

git-svn-id: http://root.cern.ch/svn/root/trunk@20796 27541ba8-7e3a-0410-8455-c3a389f83636
parent 340261a9
No related branches found
No related tags found
No related merge requests found
...@@ -882,6 +882,10 @@ TObject *TROOT::GetFunction(const char *name) const ...@@ -882,6 +882,10 @@ TObject *TROOT::GetFunction(const char *name) const
{ {
// Return pointer to function with name. // Return pointer to function with name.
if (name == 0 || name[0] == 0) {
return 0;
}
TObject *f1 = fFunctions->FindObject(name); TObject *f1 = fFunctions->FindObject(name);
if (f1) return f1; if (f1) return f1;
......
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