We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09e2409 commit 55cf724Copy full SHA for 55cf724
core/cont/src/TCollection.cxx
@@ -815,8 +815,8 @@ TIter TIter::End()
815
816
const TCollection &ROOT::Internal::EmptyCollection()
817
{
818
- static std::unique_ptr<TCollection> fgEmptyCollection((TCollection *)TClass::GetClass("TObjArray")->New());
819
- return *fgEmptyCollection.get();
+ static TObjArray sEmpty;
+ return sEmpty;
820
}
821
822
////////////////////////////////////////////////////////////////////////////////
0 commit comments