From 9e8178515d7d340551db913ab5a6e96783728103 Mon Sep 17 00:00:00 2001 From: masera Date: Wed, 7 Jan 2009 20:02:53 +0000 Subject: [PATCH] Removed GNU gcc extensions in AliITSSortTrkl --- ITS/AliITSSortTrkl.cxx | 18 +++++++++++++----- ITS/AliITSSortTrkl.h | 2 +- ITS/CMake_libITSrec.txt | 2 ++ ITS/ITSrecLinkDef.h | 4 ++-- ITS/libITSrec.pkg | 2 ++ 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/ITS/AliITSSortTrkl.cxx b/ITS/AliITSSortTrkl.cxx index d2cf229c322..13ad17b2e39 100644 --- a/ITS/AliITSSortTrkl.cxx +++ b/ITS/AliITSSortTrkl.cxx @@ -190,15 +190,19 @@ Int_t AliITSSortTrkl::FindClusters(){ void AliITSSortTrkl::Cleanup(){ // empty arrays are eliminated, the others are sorted according // to cluster multiplicity - Int_t siz[fIndex-1]; - Int_t index[fIndex-1]; + Int_t *siz = new Int_t[fIndex-1]; + Int_t *index = new Int_t[fIndex-1]; fNoClus=0; for(Int_t i=0; i0)fNoClus++; siz[i]=v[0]; } - if(fNoClus == 0)return; + if(fNoClus == 0){ + delete []siz; + delete [] index; + return; + } TMath::Sort(fIndex-1,siz,index); fClusters = new Int_t* [fNoClus]; fSize = new Int_t [fNoClus]; @@ -211,6 +215,8 @@ void AliITSSortTrkl::Cleanup(){ vext[0]=curind; for(Int_t j=1;j