Skip to content
Snippets Groups Projects
Commit 55cf7243 authored by Axel Naumann's avatar Axel Naumann
Browse files

Simplify EmptyCollection(). Thanks, Wolf Behrenhoff!

parent 09e24096
No related branches found
No related tags found
No related merge requests found
...@@ -815,8 +815,8 @@ TIter TIter::End() ...@@ -815,8 +815,8 @@ TIter TIter::End()
const TCollection &ROOT::Internal::EmptyCollection() const TCollection &ROOT::Internal::EmptyCollection()
{ {
static std::unique_ptr<TCollection> fgEmptyCollection((TCollection *)TClass::GetClass("TObjArray")->New()); static TObjArray sEmpty;
return *fgEmptyCollection.get(); return sEmpty;
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment